[Bug 776505] New: kiwi: support ro nfsroot
https://bugzilla.novell.com/show_bug.cgi?id=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c0 Summary: kiwi: support ro nfsroot Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: System Imaging AssignedTo: ms@suse.com ReportedBy: cyberorg@opensuse.org QAContact: adrian@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1 Currently kiwi only supports ro clicfs image exported over nfs, with unionfs-fuse now part of openSUSE main distribution full ro nfsroot exported over nfs can be done: It can be achieved by something like this unionfs-fuse has to be part of initrd: in config.default NFSROOT="10.0.0.254;/srv/kiwi-ltsp-nfs-i386" UNIONFS_CONFIG=tmpfs,nfs,unionfs mkdir /rwtmp /rotmp mount -t tmpfs /rwtmp /rwtmp mount -t nfs -o nfsvers=3 10.0.0.254:/srv/kiwi-ltsp-nfs-i386 /rotmp unionfs -o cow,max_files=65000 -o allow_other,use_ino,suid,dev,nonempty /rwtmp=RW:/rotmp/=RO /mnt/ Unlike aufs and other kernel based unionfs, this tool is more likely to be around for a very long time, so please add support for something like this. Reproducible: Always -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c1 --- Comment #1 from Jigish Gohil <cyberorg@opensuse.org> 2012-08-19 05:18:02 UTC --- Created an attachment (id=502798) --> (http://bugzilla.novell.com/attachment.cgi?id=502798) testing ro nfsroot using unionfs With attached patch, i was able to get nfs ro mounted fully rw using unionfs, however /mnt becomes inaccessible as soon as udevSystemStart is called from preinit script -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c2 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #502798|0 |1 is obsolete| | --- Comment #2 from Jigish Gohil <cyberorg@opensuse.org> 2012-08-19 12:12:11 UTC --- Created an attachment (id=502800) --> (http://bugzilla.novell.com/attachment.cgi?id=502800) testing ro nfsroot using unionfs Ignore earlier post, the attached patch works just fine with ro NFSROOT. May be some test is required to use unionfs only if /mnt/ is ro otherwise use normal rw NFSROOT. -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c3 --- Comment #3 from Marcus Schaefer <ms@suse.com> 2012-08-20 09:38:08 UTC --- I don't think that I want to support yet another fuse based union mount method I'm sorry to say so but they are all buggy. The only good way would be a "mount --union" supported by the kernel -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c4 --- Comment #4 from Jigish Gohil <cyberorg@opensuse.org> 2012-08-20 10:01:30 UTC --- unionfs-fuse has been around for some time now as part of official distribution, does not look like going away any time soon, so can we have *experimental* support for it till we have any alternative? at the moment there is no way of booting ro NFSROOT, also the patch is not too big :) btw, you are missing from #opensuse-kiwi -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c5 --- Comment #5 from Marcus Schaefer <ms@suse.com> 2012-08-20 10:24:26 UTC --- will think about the patch and the state of unionfs -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c6 Marcus Schaefer <ms@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |cyberorg@opensuse.org --- Comment #6 from Marcus Schaefer <ms@suse.com> 2012-10-28 19:54:48 UTC --- sorry for coming back late to this one I'm going to accept your patch if it is rewritten in the following way: 1) a separate function mountSystemFuseUnionFS() needs to be written in the same way all other non standard mount methods are written 2) the function needs to be called in mountSystem() according to the value of the UNIONFS_CONFIG type which could be 'unionfs' better 'fuse-unionfs' 3) unionfs-fuse needs to be added to KIWIConfig.txt in the tools section 4) unionfs-fuse or fuse-unionfs package whatever is preferred here needs to be added to the kiwi boot image descriptions for the distros which provides it. if the DVD media doesn't have it you need at least to write a documentation note explaining how to bootinclude the package if one wants to use this filesystem. I you rewrite/complete the patch according to this I will commit it to kiwi Thanks much for your help Regards, Marcus -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c Marcus Schaefer <ms@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|kiwi: support ro nfsroot |kiwi: support fuse-unionfs | |based read-only nfsroot -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c7 --- Comment #7 from Marcus Schaefer <ms@suse.com> 2012-11-11 20:04:15 UTC --- any news, interests in this feature ? -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c8 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|cyberorg@opensuse.org |alexo.veto@gmail.com Severity|Enhancement |Normal --- Comment #8 from Jigish Gohil <cyberorg@opensuse.org> 2012-11-12 05:49:13 UTC --- Alex, can you please take a look at this and send in patch if possible? -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c Marcus Schaefer <ms@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Severity|Normal |Enhancement -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c9 --- Comment #9 from Marcus Schaefer <ms@suse.com> 2012-11-27 10:02:28 UTC --- Looks like nobody will take over the coding part, ok I did some work here which will be part of the next kiwi version 5.04.28 I have implemented 1) 2) and 3) I'd like to ask you to test the code. In order to get unionfs into the initrd you can add the following in your system image XML <package name="fuse-unionfs" bootinclude="true"/> let me know if it works for you 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c10 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|alexo.veto@gmail.com |cyberorg@opensuse.org --- Comment #10 from Jigish Gohil <cyberorg@opensuse.org> 2012-11-29 09:25:42 UTC --- Hi, just back from a long vacation, will check this out in a couple of days. is any configuration like UNIONFS_CONFIG required or just adding unionfs-fuse to intrd enough to get it working? -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c11 --- Comment #11 from Marcus Schaefer <ms@suse.com> 2012-11-29 10:31:13 UTC --- of course you need a configuration, the one you mentioned in comment #1 :) -- 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c12 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|cyberorg@opensuse.org | --- Comment #12 from Jigish Gohil <cyberorg@opensuse.org> 2012-12-03 07:21:30 UTC --- It works, 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=776505 https://bugzilla.novell.com/show_bug.cgi?id=776505#c13 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #13 from Jigish Gohil <cyberorg@opensuse.org> 2012-12-03 07:23:36 UTC --- closing -- 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