# HG changeset patch # User Pascal Bellard # Date 1226619908 0 # Node ID 6db4741ea7a43d4952c14d883cea7ccd6dfa9095 # Parent 200cf2d8f39268c0078b3387c34964b65e4fc277 busybox: / is tmpfs in livecd/frugal diff -r 200cf2d8f392 -r 6db4741ea7a4 busybox/receipt --- a/busybox/receipt Thu Nov 13 16:06:05 2008 +0000 +++ b/busybox/receipt Thu Nov 13 23:45:08 2008 +0000 @@ -55,9 +55,8 @@ cp stuff/udhcpd $fs/etc/init.d cp stuff/inetd $fs/etc/init.d cp stuff/zcip $fs/etc/init.d - cd $fs - rm linuxrc - ln -s bin/busybox init + cp stuff/init $fs + rm $fs/linuxrc cd $WOK/$PACKAGE mkdir -p $fs/etc/modprobe.d # Udhcpc stuff. diff -r 200cf2d8f392 -r 6db4741ea7a4 busybox/stuff/init --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/busybox/stuff/init Thu Nov 13 23:45:08 2008 +0000 @@ -0,0 +1,9 @@ +#!/bin/sh + +echo "switching / to tmpfs..." +/bin/mount -t tmpfs tmpfs /mnt +/bin/mkdir /mnt/mnt +/bin/mv /dev /usr /var /root /etc /sys /tmp /media /proc /home /mnt +/bin/ln -s bin/busybox mnt/init +/bin/cp -a /sbin /bin /lib /mnt +exec /sbin/switch_root mnt /init