wok-6.x rev 13882

busybox-boot: add mount=, loopfs= & subroot= cmdline args (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 17 15:57:34 2013 +0100 (2013-01-17)
parents ac41646beaa9
children bafb0ebb3fde
files busybox-boot/receipt
line diff
     1.1 --- a/busybox-boot/receipt	Thu Jan 17 14:10:44 2013 +0100
     1.2 +++ b/busybox-boot/receipt	Thu Jan 17 15:57:34 2013 +0100
     1.3 @@ -49,13 +49,13 @@
     1.4  
     1.5  arg()
     1.6  {
     1.7 -grep -q $1= /proc/cmdline && root="$(sed "s/.*$1=\([^ ]*\).*/\1/" </proc/cmdline)"
     1.8 +grep -q \$1= /proc/cmdline && root="\$(sed "s/.*\$1=\\([^ ]*\\).*/\\1/" </proc/cmdline)"
     1.9  }
    1.10  
    1.11 -arg mount && mount $root /mnt
    1.12 -arg loopfs && losetup /dev/loop0 /mnt/$root && mount /dev/loop0 /mnt
    1.13 -arg subroot && cp /bin/busybox /mnt/$root/dev/shm &&
    1.14 -exec switch_root mnt $root/dev/shm/busybox chroot $root /sbin/init
    1.15 +arg mount && mount \$root /mnt
    1.16 +arg loopfs && losetup /dev/loop0 /mnt/\$root && mount /dev/loop0 /mnt
    1.17 +arg subroot && cp /bin/busybox /mnt/\$root/dev/shm &&
    1.18 +exec switch_root mnt \$root/dev/shm/busybox chroot \$root /sbin/init
    1.19  
    1.20  [ -d /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb
    1.21  mount -t sysfs none /sys