Blame SOURCES/0167-Do-not-log-to-kmsg-syslog-and-files-for-print-cmdlin.patch

a56a5e
From a2a9a17cc6424c7b3899353ced9c425ef59f975a Mon Sep 17 00:00:00 2001
a56a5e
From: Harald Hoyer <harald@redhat.com>
a56a5e
Date: Wed, 7 May 2014 14:54:56 +0200
a56a5e
Subject: [PATCH] Do not log to kmsg/syslog and files for "--print-cmdline"
a56a5e
a56a5e
(cherry picked from commit 535f61ca4ab55aa58d9bcf3d537cc4c0d800f6c8)
a56a5e
---
a56a5e
 dracut.sh | 8 ++++++++
a56a5e
 1 file changed, 8 insertions(+)
a56a5e
a56a5e
diff --git a/dracut.sh b/dracut.sh
1755ca
index a5fcf389..705f090a 100755
a56a5e
--- a/dracut.sh
a56a5e
+++ b/dracut.sh
a56a5e
@@ -758,6 +758,13 @@ trap 'exit 1;' SIGINT
a56a5e
 export DRACUT_KERNEL_LAZY="1"
a56a5e
 export DRACUT_RESOLVE_LAZY="1"
a56a5e
 
a56a5e
+if [[ $print_cmdline ]]; then
a56a5e
+    stdloglvl=0
a56a5e
+    sysloglvl=0
a56a5e
+    fileloglvl=0
a56a5e
+    kmsgloglvl=0
a56a5e
+fi
a56a5e
+
a56a5e
 if [[ -f $dracutbasedir/dracut-functions.sh ]]; then
a56a5e
     . $dracutbasedir/dracut-functions.sh
a56a5e
 else
a56a5e
@@ -831,6 +838,7 @@ for ((i=0; i < ${#dracut_args[@]}; i++)); do
a56a5e
         dracut_args[$i]="\"${dracut_args[$i]}\""
a56a5e
         #" keep vim happy
a56a5e
 done
a56a5e
+
a56a5e
 dinfo "Executing: $0 ${dracut_args[@]}"
a56a5e
 
a56a5e
 [[ $do_list = yes ]] && {