diff options
author | Judd Vinet <judd@archlinux.org> | 2003-08-25 19:15:49 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2003-08-25 19:15:49 +0000 |
commit | 25223b3c0c1be7d320299af4e31062295694098a (patch) | |
tree | bfb5e6be25d18eac1fc659733a3c7a5258434d10 /rc.sysinit | |
parent | da04ddf1b88b62ad77db29b8efa33649a0871b58 (diff) | |
download | initscripts-25223b3c0c1be7d320299af4e31062295694098a.tar.xz |
improved lvm detection/activation
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -5,7 +5,7 @@ echo -n "[ " echo " ]" -echo -n "[ Booting Arch Linux #VERSION# " +echo -n "[ Booting Arch Linux 0.5 " echo " ]" echo -n "[ " echo " ]" @@ -15,15 +15,17 @@ echo " ]" status "Starting DevFS Daemon" /sbin/devfsd /dev -# /proc is temporarily mounted to check for LVM support - it is re-mounted -# later from /etc/fstab -/bin/mount -n -t proc none /proc -if [ -f /proc/lvm/global -a -x /sbin/vgchange -a -r /etc/lvmtab ]; then - stat_busy "Scanning for LVM groups" - /sbin/vgchange -a y - stat_done +if [ -f /etc/lvmtab ]; then + # /proc is temporarily mounted to check for LVM support - it is + # re-mounted later from /etc/fstab + /bin/mount -n -t proc none /proc + if [ -f /proc/lvm/global -a -x /sbin/vgchange ]; then + stat_busy "Activating LVM groups" + /sbin/vgchange -a y + stat_done + fi + umount /proc fi -umount /proc status "Activating Swap" /sbin/swapon -a |