]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-lib: output warn() and die() to stderr
authorHarald Hoyer <harald@redhat.com>
Fri, 17 Jul 2009 08:11:57 +0000 (10:11 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 17 Jul 2009 08:12:52 +0000 (10:12 +0200)
modules.d/99base/dracut-lib.sh

index a57780a0b871983cb35751cd2ed812e62b1bc852..235e313e0543a749c609596feef376cebd7c3024 100644 (file)
@@ -34,17 +34,17 @@ die() {
         echo "<1>dracut: Refusing to continue";
     } > /dev/kmsg
 
-    {
+    { 
         echo "dracut: FATAL: $@";
         echo "dracut: Refusing to continue";
-    } > /dev/console 
+    } >&2
     
     exit 1
 }
 
 warn() {
     echo "<4>dracut Warning: $@" > /dev/kmsg
-    echo "dracut Warning: $@" > /dev/console
+    echo "dracut Warning: $@" >&2
 }
 
 info() {