From 25223b3c0c1be7d320299af4e31062295694098a Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Mon, 25 Aug 2003 19:15:49 +0000 Subject: improved lvm detection/activation --- rc.sysinit | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 3418ce4..af74a1f 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -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 -- cgit v1.2.3