From bd08ef03aff3a17da4e8d06c402c4863eff9158f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 18 Oct 2002 19:57:05 +0000 Subject: load lvm-mod if necessary --- rc.d/rc.sysinit | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 6b353786..f14f76ff 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -329,6 +329,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 -- cgit