From a2a9a17cc6424c7b3899353ced9c425ef59f975a Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 7 May 2014 14:54:56 +0200 Subject: [PATCH] Do not log to kmsg/syslog and files for "--print-cmdline" (cherry picked from commit 535f61ca4ab55aa58d9bcf3d537cc4c0d800f6c8) --- dracut.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dracut.sh b/dracut.sh index a5fcf38..705f090 100755 --- a/dracut.sh +++ b/dracut.sh @@ -758,6 +758,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 @@ -831,6 +838,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 ]] && {