From: Harald Hoyer Date: Mon, 9 Nov 2015 14:33:27 +0000 (+0100) Subject: dracut-logger: prefix stderr output with "dracut: " X-Git-Tag: 044~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e1c4b354cdc01f32d7903fbd7564c2ea2a5a7a1;p=thirdparty%2Fdracut.git dracut-logger: prefix stderr output with "dracut: " dnf updates of the kernel execute dracut in %post. For the user it is not possible to distinguish the dracut output from other error messages. --- diff --git a/dracut-logger.sh b/dracut-logger.sh index e5c93586d..d1cee98d5 100755 --- a/dracut-logger.sh +++ b/dracut-logger.sh @@ -324,7 +324,7 @@ _do_dlog() { local msg="$*" local lmsg="$lvlc: $*" - (( $lvl <= $stdloglvl )) && echo "$msg" >&2 + (( $lvl <= $stdloglvl )) && printf -- 'dracut: %s\n' "$msg" >&2 if (( $lvl <= $sysloglvl )); then if [[ "$_dlogfd" ]]; then