From bf636552fbc73f0127eda62fc8b4e16a4b0605d9 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 21 Mar 2001 02:09:47 +0000 Subject: fix LVM initialization (#32498) --- rc.d/rc.sysinit | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index f40d472d..4570113c 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -206,9 +206,6 @@ else fsckoptions="-V $fsckoptions" fi -if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then - action $"Setting up LVM:" /sbin/vgchange -a y -fi _RUN_QUOTACHECK=0 ROOTFSTYPE=`grep " / " /proc/mounts | awk '{ print $3 }'` @@ -271,6 +268,11 @@ state=`awk '/(^\/dev\/root| \/ )/ { print $4 }' /proc/mounts` [ "$state" != "rw" ] && \ action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw / +# LVM initialization +if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then + action $"Setting up LVM:" /sbin/vgscan && /sbin/vgchange -a y +fi + # Clear mtab >/etc/mtab -- cgit v1.2.1