wok-6.x 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 | 200cf2d8f392 |
children | 8c3c67c64f26 |
files | busybox/receipt busybox/stuff/init |
line diff
1.1 --- a/busybox/receipt Thu Nov 13 16:06:05 2008 +0000 1.2 +++ b/busybox/receipt Thu Nov 13 23:45:08 2008 +0000 1.3 @@ -55,9 +55,8 @@ 1.4 cp stuff/udhcpd $fs/etc/init.d 1.5 cp stuff/inetd $fs/etc/init.d 1.6 cp stuff/zcip $fs/etc/init.d 1.7 - cd $fs 1.8 - rm linuxrc 1.9 - ln -s bin/busybox init 1.10 + cp stuff/init $fs 1.11 + rm $fs/linuxrc 1.12 cd $WOK/$PACKAGE 1.13 mkdir -p $fs/etc/modprobe.d 1.14 # Udhcpc stuff.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/busybox/stuff/init Thu Nov 13 23:45:08 2008 +0000 2.3 @@ -0,0 +1,9 @@ 2.4 +#!/bin/sh 2.5 + 2.6 +echo "switching / to tmpfs..." 2.7 +/bin/mount -t tmpfs tmpfs /mnt 2.8 +/bin/mkdir /mnt/mnt 2.9 +/bin/mv /dev /usr /var /root /etc /sys /tmp /media /proc /home /mnt 2.10 +/bin/ln -s bin/busybox mnt/init 2.11 +/bin/cp -a /sbin /bin /lib /mnt 2.12 +exec /sbin/switch_root mnt /init