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:
parent
13eefe9f48
commit
d1d0feddf9
@ -183,7 +183,7 @@ read_kdump_conf()
|
|||||||
default)
|
default)
|
||||||
case $config_val in
|
case $config_val in
|
||||||
shell)
|
shell)
|
||||||
DEFAULT_ACTION="sh -i -l"
|
DEFAULT_ACTION="_emergency_shell kdump"
|
||||||
;;
|
;;
|
||||||
reboot)
|
reboot)
|
||||||
DEFAULT_ACTION="reboot -f"
|
DEFAULT_ACTION="reboot -f"
|
||||||
|
Loading…
Reference in New Issue
Block a user