]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 d8535dbc7b876a4884e7319d9ebc3db6d12b9844..c9e412ef903ca0b3cc905cb2d5c6fd0ebd9034ac 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"