From 2694f1224dfb5b5c734a781fc813e639139feb39 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 20 Dec 2007 12:19:56 -0600 Subject: Mount our ram /dev as soon as possible On readonly root systems, lots of fdup calls fail on device nodes, for instance in minilogd. So we'll mount /dev as early as we can Signed-off-by: Aaron Griffin --- rc.sysinit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 8d045d0..11f533a 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -15,12 +15,13 @@ printhl "Copyright 2002-2007 Judd Vinet" printhl "Distributed under the GNU General Public License (GPL)" printsep +# mount /proc and our RAM /dev +mount -n -t ramfs none /dev +mount -n -t proc none /proc + # start up our mini logger until syslog takes over /sbin/minilogd -# mount /proc -mount -n -t proc none /proc - # anything more serious than KERN_WARNING goes to the console # 'verbose' cmdline parameter enables more messages if grep -q " verbose" /proc/cmdline; then @@ -49,7 +50,6 @@ if [ -x /sbin/udevadm -a -d /sys/block ]; then # We have udev and /sys appears to be mounted, use UDev #status "Starting UDev Daemon" /etc/start_udev init stat_busy "Starting UDev Daemon" - mount -n -t ramfs none /dev mkdir /dev/pts mkdir /dev/shm /sbin/udevd --daemon -- cgit v1.2.3