aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-05-18 23:40:53 +0000
committerJudd Vinet <judd@archlinux.org>2004-05-18 23:40:53 +0000
commit446e095bdfb1d4d9c31f729d4169aa4a9f44797f (patch)
tree5f397dce0fb76fe9465997d62be812b9bb63c8c3 /rc.sysinit
parente555d5efc43f7e8597dd90482e145f6d1936faf8 (diff)
downloadinitscripts-446e095bdfb1d4d9c31f729d4169aa4a9f44797f.tar.xz
added better LVM handling
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit26
1 files changed, 14 insertions, 12 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 802b4d8..d437aa8 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -23,18 +23,20 @@ if [ -e /dev/.devfsd -a -x /sbin/devfsd ]; then
status "Starting DevFS Daemon" /sbin/devfsd /dev
fi
-if [ -f /etc/lvmtab -a -x /sbin/vgchange ]; then
- /bin/mount -n -t proc none /proc
- 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
+if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
+ if [ -f /etc/lvmtab -a -x /sbin/vgchange ]; then
+ /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
+ /bin/mount -n -t proc none /proc
+ stat_busy "Activating LVM2 groups"
+ /sbin/lvm vgchange --ignorelockingfailure -a y
+ stat_done
+ umount /proc
+ fi
fi
status "Activating Swap" /sbin/swapon -a