aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-10-18 20:01:09 +0000
committerBill Nottingham <notting@redhat.com>2002-10-18 20:01:09 +0000
commitaa0fb0ae5b3d4fdb20d7c02924e7f743b0fcca7d (patch)
treefa10af94dd399bd69b19e0c516d4ee69ec1671bc /rc.d
parent0d352689830440f0109038e80f23dee09e38d43f (diff)
downloadinitscripts-aa0fb0ae5b3d4fdb20d7c02924e7f743b0fcca7d.tar
initscripts-aa0fb0ae5b3d4fdb20d7c02924e7f743b0fcca7d.tar.gz
initscripts-aa0fb0ae5b3d4fdb20d7c02924e7f743b0fcca7d.tar.bz2
initscripts-aa0fb0ae5b3d4fdb20d7c02924e7f743b0fcca7d.tar.xz
initscripts-aa0fb0ae5b3d4fdb20d7c02924e7f743b0fcca7d.zip
load lvm-mod if necessary
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 909be0e4..05112a46 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -307,6 +307,9 @@ state=`awk '/(^\/dev\/root| \/ )/ { print $4 }' /proc/mounts`
action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw /
# LVM initialization
+if [ -f /etc/lvmtab -a ! -e /proc/lvm ] ; then
+ modprobe lvm-mod >/dev/null 2>&1
+fi
if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
action $"Setting up Logical Volume Management:" /sbin/vgscan && /sbin/vgchange -a y
fi