]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-lib.sh:info() output info to stderr
authorHarald Hoyer <harald@redhat.com>
Thu, 2 Jul 2015 13:02:31 +0000 (15:02 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 2 Jul 2015 13:16:06 +0000 (15:16 +0200)
otherwise it might collide with stdout redirection

(cherry picked from commit 57fb6e67de0cc58b9d188439b0ceb0d0d5dbbd6f)

modules.d/99base/dracut-lib.sh

index b490e8241eb4194bca8f971964564f81ad0f7284..69f70799163598fc34abab8aedfe99ffd29de936 100755 (executable)
@@ -51,7 +51,7 @@ if [ -z "$DRACUT_SYSTEMD" ]; then
         check_quiet
         echo "<30>dracut: $*" > /dev/kmsg
         [ "$DRACUT_QUIET" != "yes" ] && \
-            echo "dracut: $*"
+            echo "dracut: $*" >&2
     }
 
 else
@@ -61,7 +61,7 @@ else
     }
 
     info() {
-        echo "$*"
+        echo "$*" >&2
     }
 
 fi