mkdumprd: don't use consolehelper

This commit is contained in:
Amerigo Wang 2011-07-27 19:45:59 +08:00
parent 0ce85b362d
commit 75b0166343
3 changed files with 20 additions and 3 deletions

View File

@ -20,7 +20,7 @@ read_kdump_conf()
default)
case $config_val in
shell)
DEFAULT_ACTION="/bin/sh"
DEFAULT_ACTION="emergency_shell"
;;
reboot)
DEFAULT_ACTION="reboot -f"

View File

@ -1,6 +1,6 @@
Name: kexec-tools
Version: 2.0.2
Release: 11%{?dist}
Release: 12%{?dist}
License: GPLv2
Group: Applications/System
Summary: The kexec/kdump userspace component.
@ -281,6 +281,9 @@ done
%changelog
* Wed Jul 27 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-12
- Don't use consolehelper, use real reboot/halt/poweroff.
* Wed Jul 27 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-11
- Rename initrd to initramfs.

View File

@ -10,7 +10,7 @@ export IN_KDUMP=1
conf_file="/etc/kdump.conf"
extra_modules=""
dracut_args="-H"
dracut_args="-H -o i18n -o plymouth"
add_dracut_arg() {
dracut_args="$dracut_args $*"
@ -70,6 +70,20 @@ if [ -n "$conf_file" ]; then
extra_bins)
add_dracut_arg "-I $config_val"
;;
default)
case $config_val in
reboot)
add_dracut_arg "-I reboot"
;;
halt)
add_dracut_arg "-I halt"
;;
poweroff)
add_dracut_arg "-I poweroff"
;;
esac
;;
*)
if [ -n $(echo $config_opt | grep "^#.*$") ]
then