From 0d76f45bffddced00c83b0c06f1be796a780366b Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sun, 29 Feb 2004 07:03:00 +0000 Subject: updated for LVM2 --- rc.sysinit | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index f37379e..c5b6bfb 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -27,8 +27,12 @@ if [ -f /etc/lvmtab ]; then # /proc is temporarily mounted to check for LVM support - it is # re-mounted later from /etc/fstab /bin/mount -n -t proc none /proc - if [ -f /proc/lvm/global -a -x /sbin/vgchange ]; then - stat_busy "Activating LVM groups" + if [ -x /sbin/lvm ]; then + stat_busy "Activating LVM2 groups" + /sbin/lvm vgscan + /sbin/lvm vgchange -a y + elif [ -f /proc/lvm/global -a -x /sbin/vgchange ]; then + stat_busy "Activating LVM1 groups" /sbin/vgchange -a y stat_done fi @@ -69,9 +73,6 @@ stat_busy "Mounting Local Filesystems" /bin/mount -n -o remount,rw / /bin/rm -f /etc/mtab* /bin/mount /proc -# for LVM: -#/sbin/vgscan -#/sbin/vgchange -a y /bin/mount -a -t nonfs,nosmbfs,noncpfs stat_done -- cgit v1.2.3