base/init: only mknod /dev/null, if it does not exist yet
authorHarald Hoyer <harald@redhat.com>
Wed, 3 Nov 2010 17:45:14 +0000 (13:45 -0400)
committerHarald Hoyer <harald@redhat.com>
Wed, 3 Nov 2010 17:45:14 +0000 (13:45 -0400)
modules.d/99base/init

index 574d515..9ee5e16 100755 (executable)
@@ -72,7 +72,7 @@ umask 0007
 RDDEBUG=""
 . /lib/dracut-lib.sh
 
-mknod -m 0666 /dev/null c 1 3
+[ -c /dev/null ] || mknod -m 0666 /dev/null c 1 3
 
 # mount some important things
 mount -t proc /proc /proc >/dev/null 2>&1