[Bug 374370] New: KIWI: Confusing root options
https://bugzilla.novell.com/show_bug.cgi?id=374370 Summary: KIWI: Confusing root options Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: ms@novell.com ReportedBy: psladek@novell.com QAContact: qa@suse.de Found By: --- I tried preparing an image using the information from 'man kiwi' (or kiwi --help) as: kiwi -p /usr/share/kiwi/image/netboot/suse-SLES10-SP1 --base-root /root/images/myNetboot but it failed, returning: " Mar-27 13:16:12 <2> : Can't open log port: 9000Mar-27 13:16:12 <1> : Reading image description... skipped done Mar-27 13:16:12 <2> : Description provides no MD5 hash, check skipped Mar-27 13:16:12 <1> : Using profile(s): default done Mar-27 13:16:12 <1> : Checking for default root in XML data... notset Mar-27 13:16:13 <1> : Importing overlay path /root/images/myNetboot -> /tmp/kiwi.k23581 done Mar-27 13:16:21 <1> : Set root log: /tmp/kiwi.k23581.23536.screenrc.log... done Mar-27 13:16:21 <1> : Setting up package manager: smart done Mar-27 13:16:22 <1> : Mounting required file systems done Mar-27 13:16:22 <1> : Mounting local channel: kiwi1-23536 skipped Mar-27 13:16:22 <2> : Path /usr/share/kiwi/image/netboot/suse-repo/suse-sles-repo is writable, trying read-only mount skipped Mar-27 13:16:22 <2> : Couldn't mount read-only, using bind mount done Mar-27 13:16:23 <1> : Setting RPM signature check to: False failed Mar-27 13:16:23 <3> : chroot: cannot run command `smart': No such file or directory Mar-27 13:16:23 <3> : Image installation failed failed Mar-27 13:16:23 <1> : Umounting path: /tmp/kiwi.k23581//base-system/usr/share/kiwi/image/netboot/suse-repo/suse-sles-repo Mar-27 13:16:23 <1> : Umounting path: /tmp/kiwi.k23581/dev/pts Mar-27 13:16:23 <1> : Umounting path: /tmp/kiwi.k23581/sys Mar-27 13:16:23 <1> : Umounting path: /tmp/kiwi.k23581/dev Mar-27 13:16:23 <1> : Umounting path: /tmp/kiwi.k23581/proc Mar-27 13:16:23 <1> : Logfile available at: /tmp/kiwi.k23581.log done Mar-27 13:16:23 <3> : KIWI exited with error(s) " on the other hand, the same procedure described in kiwi.pdf implies using --root instead of --base-root (ch 1.6, p 21) and the command kiwi -p /usr/share/kiwi/image/netboot/suse-SLES10-SP1 --root /root/images/myNetboot finally succeeded. What is the purpose of the '--base-root ' parameter? (manual is not clear on this, found only an indirect reference on p.9 of kiwi.pdf) Am I doing something wrong or is there an error in man kiwi and kiwi --help? In all cases, there certainly seems to be an inconsistency. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=374370 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=374370#c1 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Marcus Schaefer <ms@novell.com> 2008-03-27 09:02:37 MST --- your base-root doesn't contain smart. the base-root is the reference to an already prepared root tree a "base root" kiwi will use this tree and skip the first stage of the prepare step and run the second stage directly this requires the base tree to provide all data which is required to complete the second stage... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=374370 User psladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=374370#c2 --- Comment #2 from Pavel Sladek <psladek@novell.com> 2008-03-28 05:39:35 MST --- Created an attachment (id=204616) --> (https://bugzilla.novell.com/attachment.cgi?id=204616) help output extension -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=374370 User psladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=374370#c3 Pavel Sladek <psladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #3 from Pavel Sladek <psladek@novell.com> 2008-03-28 05:40:12 MST --- thank you for the explanation, it makes sense now. Still, I think the documentation should be made more clear on this, namely the kiwi --help option. I have included a patch to kiwi.pl, which makes the help output a little more clear. Of course, it is just a suggestion, but the help option should be made a bit more comprehensive in any case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=374370 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=374370#c4 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Marcus Schaefer <ms@novell.com> 2008-03-28 05:49:56 MST --- yeah right it's hard to have a good documentation here because we have many options. I have added the usage patch and I would like to ask you if you can report the documentation issue to Thomas Schraitle <toms@suse.de> too because he takes care for the man page and system design documents thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=374370 User psladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=374370#c5 Pavel Sladek <psladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #5 from Pavel Sladek <psladek@novell.com> 2008-03-28 07:51:07 MST --- Hello Thomas, here is my proposed update to the kiwi man page: " kiwi {-p | --prepare} ImagePath ImagePath [ -r | --root <root-path> ] [--base-root BasePath] [--base-root-mode {copy | union | recycle}] [--add-profile Profilename] kiwi {-c | --create} ImageRoot [ -d | --destdir <destination-path> ] [--base-root BasePath] [--base-root-mode {copy | union | recycle}] [--prebuiltbootimage Directory] . . . [ --base-root <base-path> ] Refers to an already prepared root tree. Kiwi will use this tree to skip the first stage of the prepare step and run the second stage directly . . . " where the --base-root option should be put directly bellow [-r | --root RootPath] option for consistency with kiwi --help. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=374370 Pavel Sladek <psladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ms@novell.com AssignedTo|ms@novell.com |thomas.schraitle@novell.com Status|REOPENED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=374370 User thomas.schraitle@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=374370#c6 --- Comment #6 from Thomas Schraitle <thomas.schraitle@novell.com> 2008-03-28 08:50:34 MST --- Thanks for the report. :) It's fixed in SVN now. @Marcus: The usual place. ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=374370 User thomas.schraitle@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=374370#c7 --- Comment #7 from Thomas Schraitle <thomas.schraitle@novell.com> 2008-03-28 08:51:36 MST --- See here: https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/documentation/b... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=374370 User thomas.schraitle@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=374370#c8 Thomas Schraitle <thomas.schraitle@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Thomas Schraitle <thomas.schraitle@novell.com> 2009-02-11 13:13:21 MST --- Hmn, it seems I haven't set the bug to resolved/fixed. If you still have issues, please reopen it. :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com