From: Harald Hoyer Date: Mon, 4 Jun 2012 12:00:49 +0000 (+0200) Subject: dracut.sh: precopy some essential device nodes X-Git-Tag: 019~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2614421601260d69c721a70de445d36a6811b18d;p=thirdparty%2Fdracut.git dracut.sh: precopy some essential device nodes --- diff --git a/dracut.sh b/dracut.sh index d8535dbc7..c9e412ef9 100755 --- 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"