]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Do not log to kmsg/syslog and files for "--print-cmdline"
authorHarald Hoyer <harald@redhat.com>
Wed, 7 May 2014 12:54:56 +0000 (14:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 7 May 2014 12:59:13 +0000 (14:59 +0200)
dracut.sh

index c1ef4745c6e311d64aae458dd73f9130281a5e90..c4163bcfeca40b5a78cfcff0c215924c34ffe0a6 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -834,6 +834,13 @@ trap 'exit 1;' SIGINT
 export DRACUT_KERNEL_LAZY="1"
 export DRACUT_RESOLVE_LAZY="1"
 
+if [[ $print_cmdline ]]; then
+    stdloglvl=0
+    sysloglvl=0
+    fileloglvl=0
+    kmsgloglvl=0
+fi
+
 if [[ -f $dracutbasedir/dracut-functions.sh ]]; then
     . $dracutbasedir/dracut-functions.sh
 else
@@ -907,6 +914,7 @@ for ((i=0; i < ${#dracut_args[@]}; i++)); do
         dracut_args[$i]="\"${dracut_args[$i]}\""
         #" keep vim happy
 done
+
 dinfo "Executing: $0 ${dracut_args[@]}"
 
 [[ $do_list = yes ]] && {