From abbe7921517e87dcf3fa61036d26d72bc714257a Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sun, 29 Feb 2004 23:09:37 +0000 Subject: added --ignorelockingfailure during startup vgchange (LVM2) --- rc.sysinit | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index c5b6bfb..802b4d8 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -23,19 +23,17 @@ if [ -e /dev/.devfsd -a -x /sbin/devfsd ]; then status "Starting DevFS Daemon" /sbin/devfsd /dev fi -if [ -f /etc/lvmtab ]; then - # /proc is temporarily mounted to check for LVM support - it is - # re-mounted later from /etc/fstab +if [ -f /etc/lvmtab -a -x /sbin/vgchange ]; then /bin/mount -n -t proc none /proc - 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 + stat_busy "Activating LVM1 groups" + /sbin/vgchange -a y + stat_done + umount /proc +elif [ -d /etc/lvm -a -x /sbin/lvm ]; then + /bin/mount -n -t proc none /proc + stat_busy "Activating LVM2 groups" + /sbin/lvm vgchange --ignorelockingfailure -a y + stat_done umount /proc fi -- cgit v1.2.3