From: Harald Hoyer Date: Mon, 7 Mar 2011 12:35:20 +0000 (+0100) Subject: dracut-lib: improve die() logging X-Git-Tag: 009~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=535ad9d1fb3316b69765ffb37085c1e7a9b17d4e;p=thirdparty%2Fdracut.git dracut-lib: improve die() logging --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index c3bf66cbc..b4e00c2ef 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -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 }