Dracut will drop into shell in case anything wrong with rootfs mounting, but for kdump we does not depends on rootfs for non-rootfs dump and kdump will handle the default fail action based on user configuration in /etc/kdump.conf. Here call exception_handle_check and specify a handler continue_on_fail. If user add a cmdline like rd.exceptionhandler=continue_on_fail, then go on. If no cmdline rd.exceptionhandler=continue_on_fail added, just drop into shell as before. Signed-off-by: Baoquan He <bhe@xxxxxxxxxx> --- modules.d/98systemd/dracut-initqueue.sh | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/modules.d/98systemd/dracut-initqueue.sh b/modules.d/98systemd/dracut-initqueue.sh index c10b32f..1d8d5a5 100755 --- a/modules.d/98systemd/dracut-initqueue.sh +++ b/modules.d/98systemd/dracut-initqueue.sh @@ -102,9 +102,14 @@ while :; do done i=$(($i+1)) - [ $i -gt 20 ] && emergency_shell "Can't mount root filesystem" + [ $i -gt 20 ] && failure='yes' $$ break done +if [ "$failure" = "yes" ]; then + exception_handle_check -h "continue_on_fail" "Can't mount root filesystem" + failure="no" +fi + { echo -n "Mounted root filesystem " while read dev mp rest; do [ "$mp" = "$NEWROOT" ] && echo $dev; done < /proc/mounts -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html