From 7a02208af40ffe7025e14bacebe3b8aa338023ce Mon Sep 17 00:00:00 2001 From: Andreas Thienemann Date: Wed, 20 May 2009 00:02:18 +0200 Subject: [PATCH] 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(-) --- modules.d/50plymouth/plymouth-start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules.d/50plymouth/plymouth-start.sh b/modules.d/50plymouth/plymouth-start.sh index 07273c68..9a0c0fa9 100755 --- a/modules.d/50plymouth/plymouth-start.sh +++ b/modules.d/50plymouth/plymouth-start.sh @@ -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