[Bug 358341] New: mkinitrd fails to create ram disk that boots from a LUKS root partition residing on a soft raid
https://bugzilla.novell.com/show_bug.cgi?id=358341 Summary: mkinitrd fails to create ram disk that boots from a LUKS root partition residing on a soft raid Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bb@rinn.ch QAContact: qa@suse.de Found By: Customer Created an attachment (id=192902) --> (https://bugzilla.novell.com/attachment.cgi?id=192902) The fix for the issue When creating an LUKS encrypted root partition as described in http://en.opensuse.org/Encrypted_Root_File_System_with_SUSE_HOWTO, the system fails to boot if the LUKS encrypted partition itself is located on a Linux software RAID parition. The symptom is that the boot script times out when waiting for /dev/mapper/cr_md1 to become available. There is no password prompt where one could enter the LUKS passphrase. The reason for the failure is that the scripts config/luks.sh and run_all.sh try to access the soft RAID partition by something like '/dev/disk/by-id/md-name-X' instead of a plain '/dev/mdX.' This alias, however, has not yet been created at that time of the boot process. When digging a bit in the /lib/mkinitrd scripts, the culprit is easily found: /lib/mkinitrd/scripts/setup-luks.sh tries to beatify the block device that the LUKS partition resides on in this line: eval luks_${luks_name}=$(beautify_blockdev ${luksbd}) Doing away with the beautify_blockdev() call fixes the problem. After removing it the scripts in the initrd contain /dev/mdX and the system boots OK. For your convenience the patch that removes the call to beautify_blockdev() has been attached to the report. -- 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=358341 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |hare@novell.com -- 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=358341 User hare@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358341#c1 Hannes Reinecke <hare@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|hare@novell.com |agraf@novell.com --- Comment #1 from Hannes Reinecke <hare@novell.com> 2008-02-22 07:58:18 MST --- Alexander, can you check if the patch is okay? -- 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=358341 User alex@csgraf.de added comment https://bugzilla.novell.com/show_bug.cgi?id=358341#c2 Alexander Graf <alex@csgraf.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alex@csgraf.de --- Comment #2 from Alexander Graf <alex@csgraf.de> 2008-02-22 08:11:04 MST --- I put the beatify_blockdev in for a reason. Md (as well as dm) numeration is more or less random. It is deterministic, but if you add a device in the initializing list before the root device, your while initrd breaks, which you probably do not want. So the real fix would be to find out why udev hasn't created the /dev/disk links yet. When exactly do they start to appear? -- 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=358341 Alexander Graf <alex@csgraf.de> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|agraf@novell.com |alex@csgraf.de Status|NEW |ASSIGNED -- 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=358341 User agraf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358341#c3 Alexander Graf <agraf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |agraf@novell.com AssignedTo|alex@csgraf.de |agraf@novell.com --- Comment #3 from Alexander Graf <agraf@novell.com> 2008-04-13 15:17:55 MST --- I guess LUKS needs to wait for udev too ... -- 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=358341 User agraf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358341#c4 --- Comment #4 from Alexander Graf <agraf@novell.com> 2008-12-11 08:33:22 MST --- Created an attachment (id=259456) --> (https://bugzilla.novell.com/attachment.cgi?id=259456) proposed patch Can you please check if this patch fixes the issue for you as well? Testing that on 11.1 would be awesome, but since the code didn't really change, doing so on your current installation is fine too. Please make sure to make a backup of your existing initrd, so if this does not work you'd still be able to use your system ;-) -- 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=358341 Alexander Graf <agraf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |bb@rinn.ch -- 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=358341 User bb@rinn.ch added comment https://bugzilla.novell.com/show_bug.cgi?id=358341#c5 Bernd Rinn <bb@rinn.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|bb@rinn.ch | --- Comment #5 from Bernd Rinn <bb@rinn.ch> 2008-12-11 13:55:52 MST --- I have tested the patch on openSUSE 10.3 and I can confirm that it fixes the problem. 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=358341 Bernhard Walle <bwalle@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|agraf@novell.com |bwalle@novell.com -- 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=358341 User bwalle@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358341#c6 Bernhard Walle <bwalle@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Other |Basesystem Product|openSUSE 10.3 |openSUSE 11.2 Version|Final |unspecified --- Comment #6 from Bernhard Walle <bwalle@novell.com> 2008-12-14 04:29:14 MST --- Sorry, I don't plan to fix that for openSUSE 10.3. Moving to openSUSE 11.2. -- 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=358341 User bwalle@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358341#c7 Bernhard Walle <bwalle@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mkoenig@novell.com Severity|Normal |Major Status|ASSIGNED |RESOLVED Priority|P5 - None |P3 - Medium Resolution| |FIXED --- Comment #7 from Bernhard Walle <bwalle@novell.com> 2008-12-14 04:32:49 MST --- New 'cryptsetup' package submitted. Should be also in SLES 11. ------------------------------------------------------------------- Sun Dec 14 12:27:34 CET 2008 - bwalle@suse.de - Fix LUKS root partition residing on a soft raid (bnc #358341) ------------------------------------------------------------------- Thanks for reporting and testing! Matthias (Cc'd now), the maintainer of 'cryptsetup' may consider a maintenance update for openSUSE 11.1 if other problems arise that justify a maintenance update. The script has been split off from the 'mkinitrd' package to the 'cryptsetup' package between openSUSE 10.3 and openSUSE 11.1/SLES 11 code base. -- 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