mkdumprd: don't use consolehelper
This commit is contained in:
parent
0ce85b362d
commit
75b0166343
|
@ -20,7 +20,7 @@ read_kdump_conf()
|
||||||
default)
|
default)
|
||||||
case $config_val in
|
case $config_val in
|
||||||
shell)
|
shell)
|
||||||
DEFAULT_ACTION="/bin/sh"
|
DEFAULT_ACTION="emergency_shell"
|
||||||
;;
|
;;
|
||||||
reboot)
|
reboot)
|
||||||
DEFAULT_ACTION="reboot -f"
|
DEFAULT_ACTION="reboot -f"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: kexec-tools
|
Name: kexec-tools
|
||||||
Version: 2.0.2
|
Version: 2.0.2
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: The kexec/kdump userspace component.
|
Summary: The kexec/kdump userspace component.
|
||||||
|
@ -281,6 +281,9 @@ done
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Jul 27 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-11
|
||||||
- Rename initrd to initramfs.
|
- Rename initrd to initramfs.
|
||||||
|
|
||||||
|
|
16
mkdumprd
16
mkdumprd
|
@ -10,7 +10,7 @@ export IN_KDUMP=1
|
||||||
|
|
||||||
conf_file="/etc/kdump.conf"
|
conf_file="/etc/kdump.conf"
|
||||||
extra_modules=""
|
extra_modules=""
|
||||||
dracut_args="-H"
|
dracut_args="-H -o i18n -o plymouth"
|
||||||
|
|
||||||
add_dracut_arg() {
|
add_dracut_arg() {
|
||||||
dracut_args="$dracut_args $*"
|
dracut_args="$dracut_args $*"
|
||||||
|
@ -70,6 +70,20 @@ if [ -n "$conf_file" ]; then
|
||||||
extra_bins)
|
extra_bins)
|
||||||
add_dracut_arg "-I $config_val"
|
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 "^#.*$") ]
|
if [ -n $(echo $config_opt | grep "^#.*$") ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue