dracut.sh: precopy some essential device nodes
authorHarald Hoyer <harald@redhat.com>
Mon, 4 Jun 2012 12:00:49 +0000 (14:00 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 4 Jun 2012 12:00:49 +0000 (14:00 +0200)
dracut.sh

index d8535db..c9e412e 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -713,6 +713,9 @@ if [[ $kernel_only != yes ]]; then
     for _d in $hookdirs; do
         mkdir -m 0755 -p ${initdir}/lib/dracut/hooks/$_d
     done
+    if [[ "$UID" = "0" ]]; then
+        cp -a /dev/kmsg /dev/null /dev/console $initdir/dev
+    fi
 fi
 
 mkdir -p "$initdir/.kernelmodseen"