slitaz-boot-scripts rev 284

init: allow subroot & loopfs for lvm, raid & crypto
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 14 23:01:07 2012 +0100 (2012-03-14)
parents 28fda57244ee
children b9cd5851a5f0
files init
line diff
     1.1 --- a/init	Sat Mar 03 18:36:31 2012 +0100
     1.2 +++ b/init	Wed Mar 14 23:01:07 2012 +0100
     1.3 @@ -43,6 +43,8 @@
     1.4  		fi
     1.5  		mount /dev/mapper/$dmlabel /mnt
     1.6  	fi
     1.7 +	grep -q subroot= /proc/cmdline && return
     1.8 +	grep -q loopfs= /proc/cmdline && return
     1.9  	if [ -d /mnt/etc ]; then
    1.10  		umount /sys
    1.11  		[ -n "$1" ] && for i in $@ ; do