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

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