aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-03-21 02:09:47 +0000
committerBill Nottingham <notting@redhat.com>2001-03-21 02:09:47 +0000
commitbf636552fbc73f0127eda62fc8b4e16a4b0605d9 (patch)
tree7ca884004f8a25bc3f4c45635ec3fa8bf982cd05 /rc.d
parent641c6878d981c1c3df775334667f42b09fb627de (diff)
downloadinitscripts-bf636552fbc73f0127eda62fc8b4e16a4b0605d9.tar
initscripts-bf636552fbc73f0127eda62fc8b4e16a4b0605d9.tar.gz
initscripts-bf636552fbc73f0127eda62fc8b4e16a4b0605d9.tar.bz2
initscripts-bf636552fbc73f0127eda62fc8b4e16a4b0605d9.tar.xz
initscripts-bf636552fbc73f0127eda62fc8b4e16a4b0605d9.zip
fix LVM initialization (#32498)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit8
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