and only go in emergency shell if "rd.debug" is specified
https://bugzilla.redhat.com/show_bug.cgi?id=
1053655
echo "warn dracut: Refusing to continue";
} >> $hookdir/emergency/01-die.sh
[ -d /run/initramfs ] || mkdir -p -- /run/initramfs
+
> /run/initramfs/.die
- emergency_shell
+
+ getargbool 0 "rd.debug=" && emergency_shell
+
+ if [ -n "$DRACUT_SYSTEMD" ]; then
+ systemctl --no-block --force halt
+ fi
+
exit 1
}
# cause a kernel panic
exit 1
fi
- [ -e /run/initramfs/.die ] && exit 1
+
+ if [ -e /run/initramfs/.die ]; then
+ if [ -n "$DRACUT_SYSTEMD" ]; then
+ systemctl --no-block --force halt
+ fi
+ exit 1
+ fi
}
action_on_fail()