]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-lib: improve die() logging
authorHarald Hoyer <harald@redhat.com>
Mon, 7 Mar 2011 12:35:20 +0000 (13:35 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 7 Mar 2011 12:37:22 +0000 (13:37 +0100)
modules.d/99base/dracut-lib.sh

index c3bf66cbc7edc6583c6f14ef20a2f6b71fb21d30..b4e00c2efaf70063ed5aa632d58f0eb8f67c8131 100755 (executable)
@@ -234,10 +234,12 @@ die() {
     } > /dev/kmsg
 
     { 
-        echo "dracut: FATAL: $@";
-        echo "dracut: Refusing to continue";
-    } >&2
-    
+        echo "warn dracut: FATAL: \"$@\"";
+        echo "warn dracut: Refusing to continue";
+       echo "exit 1"
+    } >> /emergency/01-die.sh
+
+    > /.die
     exit 1
 }