aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-05-19 16:56:48 +0000
committerJudd Vinet <judd@archlinux.org>2004-05-19 16:56:48 +0000
commitf396331a675e17ef282b56ea228e66383d401400 (patch)
tree0ae68be415f678d2af76edae0beee3eefe5b1334 /rc.sysinit
parent446e095bdfb1d4d9c31f729d4169aa4a9f44797f (diff)
downloadinitscripts-f396331a675e17ef282b56ea228e66383d401400.tar.xz
added sysfs mounting to fix LVM2 segfaults
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit4
1 files changed, 4 insertions, 0 deletions
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