[arch-projects] [PATCH] [initscripts] Remove too early /dev/null redirection
Thomas Bächler
thomas at archlinux.org
Mon Sep 12 11:57:16 EDT 2011
Am 12.09.2011 17:47, schrieb Gerardo Exequiel Pozzi:
> 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}
ACK. We should not redirect to /dev/null (or anywhere) until we are
certain that we have a populated /dev!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20110912/24888dbb/attachment.asc>
More information about the arch-projects
mailing list