wok-6.x rev 10916
busybox/init: add posixovl & bind support (for umsdos fake)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 02 10:24:00 2011 +0200 (2011-08-02) |
parents | b7a03429e515 |
children | 409cb72cb3e0 |
files | busybox/stuff/init |
line diff
1.1 --- a/busybox/stuff/init Tue Aug 02 08:49:43 2011 +0200 1.2 +++ b/busybox/stuff/init Tue Aug 02 10:24:00 2011 +0200 1.3 @@ -120,6 +120,7 @@ 1.4 fi 1.5 mount $dev /mnt 1.6 fi 1.7 + grep -q posixovl /proc/cmdline && mount.posixovl /mnt 1.8 fi 1.9 if grep -q loopfs= /proc/cmdline; then 1.10 loopfs="$(sed 's/.*loopfs=\([^ ]*\).*/\1/' < /proc/cmdline)" 1.11 @@ -127,6 +128,10 @@ 1.12 losetup /dev/loop0 /mnt/$loopfs 1.13 mount /dev/loop0 /mnt 2> /dev/null 1.14 fi 1.15 +if grep -q bindfs= /proc/cmdline; then 1.16 + bind="$(sed 's/.*bindfs=\([^ ]*\).*/\1/' < /proc/cmdline)" 1.17 + mount --bind /mnt/${bind%,*} /mnt/${bind%,*}/${bind#*,} 1.18 +fi 1.19 grep -q cryptoroot= /proc/cmdline && try_init 1.20 umount /sys 1.21 if grep -q subroot= /proc/cmdline; then