aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
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