From f396331a675e17ef282b56ea228e66383d401400 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Wed, 19 May 2004 16:56:48 +0000 Subject: added sysfs mounting to fix LVM2 segfaults --- rc.sysinit | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index d437aa8..9254506 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -25,17 +25,21 @@ fi if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then if [ -f /etc/lvmtab -a -x /sbin/vgchange ]; then + # Kernel 2.4.x, LVM1 groups /bin/mount -n -t proc none /proc stat_busy "Activating LVM1 groups" /sbin/vgchange -a y stat_done umount /proc elif [ -x /sbin/lvm ]; then + # Kernel 2.6.x, LVM2 groups /bin/mount -n -t proc none /proc + /bin/mount -n -t sysfs none /sys stat_busy "Activating LVM2 groups" /sbin/lvm vgchange --ignorelockingfailure -a y stat_done umount /proc + umount /sys fi fi -- cgit v1.2.3