]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
Prevent plymouth-start.sh from creating already existing device nodes.
authorAndreas Thienemann <andreas@bawue.net>
Tue, 19 May 2009 22:02:18 +0000 (00:02 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 May 2009 09:13:37 +0000 (11:13 +0200)
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(-)

modules.d/50plymouth/plymouth-start.sh

index 07273c68b6deeb49bbf8c1eb43b2480d9f986c7e..9a0c0fa9750d13e9642a690b90b9965d062ec953 100755 (executable)
@@ -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