From 535ad9d1fb3316b69765ffb37085c1e7a9b17d4e Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 7 Mar 2011 13:35:20 +0100 Subject: [PATCH] dracut-lib: improve die() logging --- modules.d/99base/dracut-lib.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 } -- 2.47.3