diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 8 |
1 files 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 |