[Bug 504652] New: kiwi: netboot fails using clicfs image
http://bugzilla.novell.com/show_bug.cgi?id=504652 User cyberorg@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c497172 Summary: kiwi: netboot fails using clicfs image Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: System Imaging AssignedTo: coolo@novell.com ReportedBy: cyberorg@opensuse.org QAContact: adrian@novell.com CC: ms@novell.com, cyberorg@opensuse.org Depends on: 497172 Found By: --- +++ This bug was initially created as a clone of Bug #497172 +++ https://bugzilla.novell.com/attachment.cgi?id=292644 boot.kiwi using nbdroot Manually created clicfs image, attached are the boot.kiwi logs using NBDROOT and AOEROOT ------- Comment #7 From Jigish Gohil 2009-05-17 06:18:40 MDT (-) [reply] ------- https://bugzilla.novell.com/attachment.cgi?id=292645 boot.kiwi using aoeroot manually mounting the image works in kiwidebug shell: for AOE clicfs /dev/etherd/e0.1 /read-only mkdir /read-write mount -o loop /read-only/fsdata.ext3 /read-write for NBD clicfs /dev/nbd0 /read-only mkdir /read-write mount -o loop /read-only/fsdata.ext3 /read-write -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Enhancement |Normal -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|497172 | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User coolo@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c1 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|coolo@novell.com |ms@novell.com --- Comment #1 from Stephan Kulow <coolo@novell.com> 2009-05-18 03:33:19 MDT --- The boot.kiwi calls: clicfs -m 1007 /read-only clicfs needs two arguments at least -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User ms@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c2 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Marcus Schaefer <ms@novell.com> 2009-05-18 03:39:50 MDT --- this was fixed in kiwi already -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User ms@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c3 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Marcus Schaefer <ms@novell.com> 2009-05-18 07:52:28 MDT --- reopened -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User ms@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c4 --- Comment #4 from Marcus Schaefer <ms@novell.com> 2009-05-18 08:20:49 MDT --- does the following patch solve the problem ? diff --git a/modules/KIWILinuxRC.sh b/modules/KIWILinuxRC.sh index a0d3e3a..f739221 100644 --- a/modules/KIWILinuxRC.sh +++ b/modules/KIWILinuxRC.sh @@ -3294,11 +3294,15 @@ function mountSystemClicFS { #-------------------------------------- mkdir -p $roDir #====================================== - # check for NFS export location + # check for NFS,AOE,NBD export location #-------------------------------------- - if [ ! -z "$NFSROOT" ];then + if \ + [ ! -z "$NFSROOT" ] || \ + [ ! -z "$AOEROOT" ] || \ + [ ! -z "$NBDROOT" ] + then if ! kiwiMount "$imageRootDevice" "$roDir" "" $loopf;then - Echo "Failed to mount NFS filesystem" + Echo "Failed to mount remote filesystem" return 1 fi loopf=$(ls -1 $roDir/*.clicfs &>/dev/null) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User ms@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c5 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |cyberorg@opensuse.org --- Comment #5 from Marcus Schaefer <ms@novell.com> 2009-05-18 08:23:50 MDT --- for clicfs you need to export the clicfs file as something .clicfs could you test it ? Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User cyberorg@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c6 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|cyberorg@opensuse.org | --- Comment #6 from Jigish Gohil <cyberorg@opensuse.org> 2009-05-18 09:09:45 MDT --- Created an attachment (id=292784) --> (http://bugzilla.novell.com/attachment.cgi?id=292784) boot.kiwi using nbdroot Image is created using: <type boot="netboot/suse-11.1" bootprofile="diskless">clicfs</type> so it puts file as fsdata.ext3 inside clicfs file, not .clicfs. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User cyberorg@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c7 --- Comment #7 from Jigish Gohil <cyberorg@opensuse.org> 2009-05-18 09:10:14 MDT --- Created an attachment (id=292785) --> (http://bugzilla.novell.com/attachment.cgi?id=292785) boot.kiwi using aoeroot -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User ms@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c8 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |cyberorg@opensuse.org --- Comment #8 from Marcus Schaefer <ms@novell.com> 2009-05-18 10:14:26 MDT --- ok next try, last patch was crap try this one: diff --git a/modules/KIWILinuxRC.sh b/modules/KIWILinuxRC.sh index a0d3e3a..2b56edb 100644 --- a/modules/KIWILinuxRC.sh +++ b/modules/KIWILinuxRC.sh @@ -3280,6 +3280,7 @@ function mountSystemClicFS { local loopf=$1 local roDir=/read-only local rwDevice=`echo $UNIONFS_CONFIG | cut -d , -f 1` + local roDevice=`echo $UNIONFS_CONFIG | cut -d , -f 2` local clic_cmd=clicfs local haveBytes local haveKByte @@ -3297,12 +3298,13 @@ function mountSystemClicFS { # check for NFS export location #-------------------------------------- if [ ! -z "$NFSROOT" ];then - if ! kiwiMount "$imageRootDevice" "$roDir" "" $loopf;then + roDevice="$imageRootDevice" + if ! kiwiMount "$roDevice" "$roDir" "" $loopf;then Echo "Failed to mount NFS filesystem" return 1 fi - loopf=$(ls -1 $roDir/*.clicfs &>/dev/null) - if [ ! -e $loopf ];then + roDevice=$(ls -1 $roDir/*.clicfs &>/dev/null) + if [ ! -e $roDevice ];then Echo "Can't find an uniqly exported *.clicfs file" return 1 fi @@ -3330,7 +3332,7 @@ function mountSystemClicFS { #====================================== # mount clic container #-------------------------------------- - if ! $clic_cmd $loopf $roDir; then + if ! $clic_cmd $roDevice $roDir; then Echo "Failed to mount clic filesystem" return 1 fi -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User cyberorg@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c9 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #292785|0 |1 is obsolete| | --- Comment #9 from Jigish Gohil <cyberorg@opensuse.org> 2009-05-18 10:54:37 MDT --- Created an attachment (id=292816) --> (http://bugzilla.novell.com/attachment.cgi?id=292816) latest log with new changes -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=504652 User ms@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=504652#c10 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|cyberorg@opensuse.org | Resolution| |FIXED --- Comment #10 from Marcus Schaefer <ms@novell.com> 2009-05-19 03:55:47 MDT --- patch applied incorrectly, worked afterwards -- Configure bugmail: http://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