https://bugzilla.novell.com/show_bug.cgi?id=216117 Summary: mkinitrd create error in initrd init script for setting vg_root Product: SUSE Linux 10.1 Version: Final Platform: Other OS/Version: SuSE Linux 10.1 Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: r.friedwagner@gmx.net QAContact: qa@suse.de At least if you use lvm2 on top of software raid you get at boot time an error message about setting vg_root (e.g. /init: ... line 601). Reason: /sbin/mkinitrd in package mkinitrd-1.2-106.19 generates erroneous shellscript code ...
if [ -z "$vg_root" ]; then vg_root= xxx fi
Fix: --- /sbin/mkinitrd.ori 2006-10-29 11:38:20.000000000 +0100 +++ /sbin/mkinitrd 2006-10-29 11:38:57.000000000 +0100 @@ -3036,7 +3036,7 @@ fi # Check whether we are using LVM2 if [ -z "$root_evms" ] ; then - vg_root=$(lvs --noheadings -o vg_name,lv_kernel_major,lv_kernel_minor | sed -n "s/ \(.*\) *$major *$minor/\1/p") + vg_root=$(lvs --noheadings -o vg_name,lv_kernel_major,lv_kernel_minor | sed -n "s/ *\(.*\) *$major *$minor/\1/p") if [ "$vg_root" ] ; then root_lvm2=1 fi Best Regards, Roland Friedwagner -- 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.