Mailinglist Archive: opensuse-bugs (8956 mails)

< Previous Next >
[Bug 216117] New: mkinitrd create error in initrd init script for setting vg_root
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 29 Oct 2006 04:13:24 -0700 (MST)
  • Message-id: <bug-216117-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
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@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: r.friedwagner@xxxxxxx
QAContact: qa@xxxxxxx


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.

< Previous Next >