diff --git a/system/skeleton/init b/system/skeleton/init index 6cd410a8..7586499a 100755 --- a/system/skeleton/init +++ b/system/skeleton/init @@ -18,10 +18,6 @@ for x in $(cat /proc/cmdline); do esac done -if [ "x${ROOT}" = "x" ]; then - exec /sbin/init -fi - mount -t sysfs sysfs /sys mount -t devtmpfs -o nosuid,mode=0755 devtmpfs /dev @@ -33,6 +29,10 @@ mount -t tmpfs tmpfs /dev/shm mount -t tmpfs tmpfs /tmp mount -t tmpfs tmpfs /run +if [ "x${ROOT}" = "x" ]; then + exec /sbin/init +fi + export ROOT mkdir /rootfs