From: Harald Hoyer Date: Wed, 7 May 2014 12:54:56 +0000 (+0200) Subject: Do not log to kmsg/syslog and files for "--print-cmdline" X-Git-Tag: 038~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=535f61ca4ab55aa58d9bcf3d537cc4c0d800f6c8;p=thirdparty%2Fdracut.git Do not log to kmsg/syslog and files for "--print-cmdline" --- diff --git a/dracut.sh b/dracut.sh index c1ef4745c..c4163bcfe 100755 --- 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 ]] && {