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

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Thu Sep 22 19:09:12 EDT 2011


On 09/12/2011 12:57 PM, Thomas Bächler wrote:
> 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!
>
Wheel, anyway there are more places that uses /dev/null (inside at 
rc.d/functions).

Anyway a system without initramfs should have a minimal /dev/ with 
console (othewise init will fails silently and no startups messages you 
will see) and if no null dev, messages without colors, until 
rc.d/functions is re-read (in rc.multi).

-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1



More information about the arch-projects mailing list