]> 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:02:31 +0000 (15:02 +0200)
otherwise it might collide with stdout redirection

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

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