[arch-projects] [PATCH] [initscripts] Remove too early /dev/null redirection

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Mon Sep 12 11:47:19 EDT 2011

Since recent change in udev package [#1] (install: remove post-install)
In case of booting without initramfs and there is no /dev/null:
* if / is ro, devtmpfs mount will fail, in consecuence /dev will be mounted as tmpfs.
* if / is rw, devtmpfs mount will success, but a regular file /dev/null in / will be created.

[#1] http://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/udev&id=8728747c2b3d5d0506f7e6f1ac74edc0319591d6

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
 rc.sysinit |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rc.sysinit b/rc.sysinit
index 9f215c4..01fe49f 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -15,7 +15,7 @@ printsep
 mountpoint -q /proc    || mount -n -t proc proc /proc -o nosuid,noexec,nodev
 mountpoint -q /sys     || mount -n -t sysfs sys /sys -o nosuid,noexec,nodev
 mountpoint -q /run     || mount -n -t tmpfs run /run -o mode=0755,size=10M,nosuid,nodev
-mountpoint -q /dev     || mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid &>/dev/null \
+mountpoint -q /dev     || mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid \
 	|| mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
 mkdir -p -m 1777 /run/lock
 mkdir -p /dev/{pts,shm}

More information about the arch-projects mailing list