wok-4.x diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/init	Thu Nov 13 23:45:08 2008 +0000
     1.3 @@ -0,0 +1,9 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +echo "switching / to tmpfs..."
     1.7 +/bin/mount -t tmpfs tmpfs /mnt
     1.8 +/bin/mkdir /mnt/mnt
     1.9 +/bin/mv /dev /usr /var /root /etc /sys /tmp /media /proc /home /mnt
    1.10 +/bin/ln -s bin/busybox mnt/init
    1.11 +/bin/cp -a /sbin /bin /lib /mnt
    1.12 +exec /sbin/switch_root mnt /init