]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-logger: prefix stderr output with "dracut: "
authorHarald Hoyer <harald@redhat.com>
Mon, 9 Nov 2015 14:33:27 +0000 (15:33 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Nov 2015 14:35:53 +0000 (15:35 +0100)
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.

dracut-logger.sh

index e5c93586d1e306c256b864ada3d30cee39ff47fd..d1cee98d5da5eda66bd0db10dafaf8ca0473686f 100755 (executable)
@@ -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