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 <[email protected]>
> ---
>  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!

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to