# HG changeset patch # User Pascal Bellard # Date 1312273440 -7200 # Node ID 003018236fb9c001c6418d523e413617e79b633f # Parent b7a03429e515d1c406ce3dc737d5de2e242e99d4 busybox/init: add posixovl & bind support (for umsdos fake) diff -r b7a03429e515 -r 003018236fb9 busybox/stuff/init --- a/busybox/stuff/init Tue Aug 02 08:49:43 2011 +0200 +++ b/busybox/stuff/init Tue Aug 02 10:24:00 2011 +0200 @@ -120,6 +120,7 @@ fi mount $dev /mnt fi + grep -q posixovl /proc/cmdline && mount.posixovl /mnt fi if grep -q loopfs= /proc/cmdline; then loopfs="$(sed 's/.*loopfs=\([^ ]*\).*/\1/' < /proc/cmdline)" @@ -127,6 +128,10 @@ losetup /dev/loop0 /mnt/$loopfs mount /dev/loop0 /mnt 2> /dev/null fi +if grep -q bindfs= /proc/cmdline; then + bind="$(sed 's/.*bindfs=\([^ ]*\).*/\1/' < /proc/cmdline)" + mount --bind /mnt/${bind%,*} /mnt/${bind%,*}/${bind#*,} +fi grep -q cryptoroot= /proc/cmdline && try_init umount /sys if grep -q subroot= /proc/cmdline; then