Skip to content

Commit

Permalink
Mount our ram /dev as soon as possible
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aaronmgriffin committed Dec 20, 2007
1 parent 25811ba commit 2694f12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rc.sysinit
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2694f12

Please sign in to comment.