slitaz-boot-scripts rev 287
init/subroot: may use disk busybox-static
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 21 13:28:35 2012 +0100 (2012-03-21) |
parents | bf2f87edd87c |
children | 1c4fd91d1db5 |
files | init |
line diff
1.1 --- a/init Tue Mar 20 09:06:00 2012 +0100 1.2 +++ b/init Wed Mar 21 13:28:35 2012 +0100 1.3 @@ -159,7 +159,8 @@ 1.4 mount --move /dev/pts /mnt$subroot/dev/pts 1.5 shm=$subroot/dev/shm 1.6 mount --move /dev/shm /mnt$shm 1.7 - if mv /usr/share/boot/busybox-static /mnt$shm 2> /dev/null; then 1.8 + bb="/usr/share/boot/busybox-static /mnt$shm 2> /dev/null" 1.9 + if mv $bb || cp /mnt$subroot$bb ; then 1.10 success <<EOT 1.11 exec /sbin/switch_root mnt $shm/busybox-static chroot $subroot /sbin/init 1.12 EOT