Blame SOURCES/0250-dracut-lib.sh-info-output-info-to-stderr.patch

64b87c
From e2b5b450e7aac101d12149fdf0623106799933ff Mon Sep 17 00:00:00 2001
64b87c
From: Harald Hoyer <harald@redhat.com>
64b87c
Date: Thu, 2 Jul 2015 15:02:31 +0200
64b87c
Subject: [PATCH] dracut-lib.sh:info() output info to stderr
64b87c
64b87c
otherwise it might collide with stdout redirection
64b87c
64b87c
(cherry picked from commit 57fb6e67de0cc58b9d188439b0ceb0d0d5dbbd6f)
64b87c
---
64b87c
 modules.d/99base/dracut-lib.sh | 4 ++--
64b87c
 1 file changed, 2 insertions(+), 2 deletions(-)
64b87c
64b87c
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
64b87c
index b490e82..69f7079 100755
64b87c
--- a/modules.d/99base/dracut-lib.sh
64b87c
+++ b/modules.d/99base/dracut-lib.sh
64b87c
@@ -51,7 +51,7 @@ if [ -z "$DRACUT_SYSTEMD" ]; then
64b87c
         check_quiet
64b87c
         echo "<30>dracut: $*" > /dev/kmsg
64b87c
         [ "$DRACUT_QUIET" != "yes" ] && \
64b87c
-            echo "dracut: $*"
64b87c
+            echo "dracut: $*" >&2
64b87c
     }
64b87c
 
64b87c
 else
64b87c
@@ -61,7 +61,7 @@ else
64b87c
     }
64b87c
 
64b87c
     info() {
64b87c
-        echo "$*"
64b87c
+        echo "$*" >&2
64b87c
     }
64b87c
 
64b87c
 fi