[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
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
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
https://bugzilla.novell.com/show_bug.cgi?id=358341
Alexander Graf
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
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
https://bugzilla.novell.com/show_bug.cgi?id=358341
Alexander Graf
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
https://bugzilla.novell.com/show_bug.cgi?id=358341
Bernhard Walle
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
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
participants (1)
-
bugzilla_noreply@novell.com