aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2007-12-20 12:19:56 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2007-12-20 12:19:56 -0600
commit2694f1224dfb5b5c734a781fc813e639139feb39 (patch)
tree79a64862a7236cbf3824ccbbb62bc87015bc87fa /rc.sysinit
parent25811badce84cd157a8b66c84e78f931cad1d129 (diff)
downloadinitscripts-2694f1224dfb5b5c734a781fc813e639139feb39.tar.xz
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 <aaronmgriffin@gmail.com>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit8
1 files changed, 4 insertions, 4 deletions
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