From d1d0feddf9d6c7b38f60092f0ce43be748dbba02 Mon Sep 17 00:00:00 2001 From: Dave Young Date: Wed, 1 Aug 2012 18:14:42 +0800 Subject: [PATCH] call dracut function for default shell Kdump dracut hooks need to enter emergency shell, currently it directly call "sh -i -l", with recent dracut this does not work anymore without proper ctty. change to call dracut lib function _emergency_shell instead of directly call 'sh -i -l' This patch depends on dracut patch: http://permalink.gmane.org/gmane.linux.kernel.initramfs/2821 Signed-off-by: Dave Young Acked-by: Vivek Goyal --- dracut-kdump.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-kdump.sh b/dracut-kdump.sh index fed3cf3..397c468 100755 --- a/dracut-kdump.sh +++ b/dracut-kdump.sh @@ -183,7 +183,7 @@ read_kdump_conf() default) case $config_val in shell) - DEFAULT_ACTION="sh -i -l" + DEFAULT_ACTION="_emergency_shell kdump" ;; reboot) DEFAULT_ACTION="reboot -f"