wait for loginit

This commit is contained in:
Amerigo Wang 2011-07-27 20:37:49 +08:00
parent db54b3371c
commit 52dbdacb5f
4 changed files with 12 additions and 19 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh
. /lib/dracut-lib.sh
KDUMP_PATH="/var/crash"
CORE_COLLECTOR="makedumpfile -d 31 -c"
DEFAULT_ACTION="reboot -f"
@ -20,16 +22,16 @@ read_kdump_conf()
default)
case $config_val in
shell)
DEFAULT_ACTION="emergency_shell"
DEFAULT_ACTION="sh -i -l"
;;
reboot)
DEFAULT_ACTION="/usr/bin/reboot -f"
DEFAULT_ACTION="reboot -f"
;;
halt)
DEFAULT_ACTION="/usr/bin/halt -f"
DEFAULT_ACTION="halt -f"
;;
poweroff)
DEFAULT_ACTION="/usr/bin/poweroff -f"
DEFAULT_ACTION="poweroff -f"
;;
esac
;;
@ -40,6 +42,7 @@ read_kdump_conf()
do_default_action()
{
wait_for_loginit
$DEFAULT_ACTION
}

View File

@ -1,6 +1,6 @@
Name: kexec-tools
Version: 2.0.2
Release: 13%{?dist}
Release: 14%{?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-14
- Wait for loginit.
* Wed Jul 27 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-13
- Use absolute path of reboot/halt/poweroff.

View File

@ -70,20 +70,6 @@ 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

View File

@ -7,3 +7,4 @@ d872bdde29eb036cd59e7b71c148fca6 dracut-files.tbz2
729603e26a37b91aafd52966300693f8 dracut-files.tbz2
1c866f72a724807d4dc23fa8571b8e08 dracut-files.tbz2
7d1516ae8af7000cec149b9409f9b859 dracut-files.tbz2
ea7a345cbaa0d3d9a9dbd46631155550 dracut-files.tbz2