diff options
author | Judd Vinet <judd@archlinux.org> | 2004-05-18 23:40:53 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2004-05-18 23:40:53 +0000 |
commit | 446e095bdfb1d4d9c31f729d4169aa4a9f44797f (patch) | |
tree | 5f397dce0fb76fe9465997d62be812b9bb63c8c3 /rc.sysinit | |
parent | e555d5efc43f7e8597dd90482e145f6d1936faf8 (diff) | |
download | initscripts-446e095bdfb1d4d9c31f729d4169aa4a9f44797f.tar.xz |
added better LVM handling
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -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 |