From 0d9e15f4338505fa10d67aa995a00b2a45d201ce Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 31 Jan 2010 11:29:04 +0100 Subject: reworking startup using devtmpfs After this change it is not needed to create console, tty and null device nodes for nfsroot boot. --- package/base-files/extra/init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'package/base-files/extra') diff --git a/package/base-files/extra/init b/package/base-files/extra/init index e11446366..eabf45b5b 100755 --- a/package/base-files/extra/init +++ b/package/base-files/extra/init @@ -1,5 +1,5 @@ #!/bin/sh -echo "Starting system ..." +echo "System initialization ..." export PATH=/bin:/sbin:/usr/bin:/usr/sbin mount -nt proc proc /proc mount -o nosuid,nodev,noexec -t sysfs sysfs /sys @@ -11,7 +11,6 @@ mount -o nosuid,nodev,noexec -t sysfs sysfs /sys mount -o nosuid,size=128k,mode=0755 -t tmpfs mdev /dev mkdir /dev/pts /dev/shm mount -o nosuid,noexec -t devpts devpts /dev/pts -exec 0<>/dev/console >&0 2>&0 echo >/dev/mdev.seq echo "/sbin/mdev" >/proc/sys/kernel/hotplug mdev -s @@ -19,4 +18,6 @@ mount -o remount,rw / cat /etc/.rnd >/dev/urandom 2>&1 [ -f /etc/fstab ] && mount -a [ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;} +echo "Starting system init ..." +exec 0<>/dev/console >&0 2>&0 exec /sbin/init -- cgit v1.2.3