Prevent plymouth-start.sh from creating already existing device nodes.

Prevent messages such as the following when booting dracut:

++ mknod /dev/null c 1 3
mknod: `/dev/null': File exists

The plymouth-start.sh script tries to create device nodes it needs, but which
have already been created by the /init script.

This patch makes the mknod calls conditional.

diffstat dracut-plymouth-prevent-mknod-errormsg.patch
 plymouth-start.sh |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
master
Andreas Thienemann 2009-05-20 00:02:18 +02:00 committed by Harald Hoyer
parent 0053156804
commit 7a02208af4
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
#!/bin/sh

mknod /dev/null c 1 3
[[ -c /dev/null ]] || mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mknod /dev/systty c 4 0
mknod /dev/tty c 5 0
mknod /dev/console c 5 1
mknod /dev/ptmx c 5 2
[[ -c /dev/console ]] || mknod /dev/console c 5 1
[[ -c /dev/ptmx ]] || mknod /dev/ptmx c 5 2
mknod /dev/fb c 29 0
mknod /dev/tty0 c 4 0
mknod /dev/tty1 c 4 1