[Bug 218116] New: mkinitrd broke root=/dev/disk/by-*/* on LVM
https://bugzilla.novell.com/show_bug.cgi?id=218116 Summary: mkinitrd broke root=/dev/disk/by-*/* on LVM Product: openSUSE 10.2 Version: Beta 1 plus Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: hare@novell.com ReportedBy: kernel01@hailfinger.org QAContact: qa@suse.de CC: aj@novell.com /sbin/mkinitrd line 2673ff has this code: |if [ -z "\$vg_root" ]; then | vg_root=$vg_root |fi which is executed in the initrd if the rootfs is on lvm2 and a boot parameter in the form of "root=/dev/disk/by-*/*" was given. This code breaks if $vg_root has leading spaces. /sbin/mkinitrd line 3099 has this code: vg_root=$(lvs --noheadings -o vg_name,lv_kernel_major,lv_kernel_minor 2> /dev/null | sed -n "s/ \(.*\) *$major *$minor/\1/p") which does NOT strip all leading spaces, but only the first one, breaking the init script in the initrd. Patch attached. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218116 ------- Comment #1 from kernel01@hailfinger.org 2006-11-03 19:11 MST ------- Created an attachment (id=103768) --> (https://bugzilla.novell.com/attachment.cgi?id=103768&action=view) patch for mkinitrd Fix for the regular expression in /sbin/mkinitrd:3099 where only one and not all spaces before vg_name are stripped. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218116 bwalle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #3 from bwalle@novell.com 2006-11-07 07:19 MST ------- Fixed in next release. Thanks for reporting. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com