wok-stable annotate busybox/stuff/init @ rev 1703
busybox: / is tmpfs in livecd/frugal
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 13 23:45:08 2008 +0000 (2008-11-13) |
parents | |
children | 8c3c67c64f26 |
rev | line source |
---|---|
pascal@1703 | 1 #!/bin/sh |
pascal@1703 | 2 |
pascal@1703 | 3 echo "switching / to tmpfs..." |
pascal@1703 | 4 /bin/mount -t tmpfs tmpfs /mnt |
pascal@1703 | 5 /bin/mkdir /mnt/mnt |
pascal@1703 | 6 /bin/mv /dev /usr /var /root /etc /sys /tmp /media /proc /home /mnt |
pascal@1703 | 7 /bin/ln -s bin/busybox mnt/init |
pascal@1703 | 8 /bin/cp -a /sbin /bin /lib /mnt |
pascal@1703 | 9 exec /sbin/switch_root mnt /init |