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 <dyoung@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Dave Young 2012-08-01 18:14:42 +08:00
parent 13eefe9f48
commit d1d0feddf9

View File

@ -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"