nfs root script breaks with absolute /sbin/init symlinks
Bug #1439955 reported by
Lucas Gadani
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Debian) |
Fix Released
|
Unknown
|
|||
initramfs-tools (Ubuntu) |
Fix Released
|
High
|
Martin Pitt |
Bug Description
The initramfs boot script try to mount the root filesystem into /root and look for a /sbin/init file inside that folder. systemd installs /sbin/init as a link to /lib/systemd/
Making that link a relative path fixes the problem (i.e. making it ../lib/
Please, see /usr/share/
I believe this should be fixed before the release of 15.04, as it breaks all nfs root installs.
Related branches
Changed in initramfs-tools (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in initramfs-tools (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
This reminds me of bug 1351295. For the main "init" initramfs script and local partitions there is code to get along with absolute symlinks. I don't see any readlink in the nfs script, but I figure this is a related problem. I see the Debian package has a fix for this: http:// anonscm. debian. org/cgit/ kernel/ initramfs- tools.git/ commit/ scripts/ nfs?id= 7bc24f829f
Would you mind testing this? I. e. please put the attached "nfs" script into /usr/share/ initramfs- tools/scripts/ , revert /sbin/init to be an absolute link to /lib/systemd/ systemd again, run "sudo update-initramfs -u", and check if booting now works?
Thanks!