wait for loginit
This commit is contained in:
parent
db54b3371c
commit
52dbdacb5f
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
. /lib/dracut-lib.sh
|
||||||
|
|
||||||
KDUMP_PATH="/var/crash"
|
KDUMP_PATH="/var/crash"
|
||||||
CORE_COLLECTOR="makedumpfile -d 31 -c"
|
CORE_COLLECTOR="makedumpfile -d 31 -c"
|
||||||
DEFAULT_ACTION="reboot -f"
|
DEFAULT_ACTION="reboot -f"
|
||||||
@ -20,16 +22,16 @@ read_kdump_conf()
|
|||||||
default)
|
default)
|
||||||
case $config_val in
|
case $config_val in
|
||||||
shell)
|
shell)
|
||||||
DEFAULT_ACTION="emergency_shell"
|
DEFAULT_ACTION="sh -i -l"
|
||||||
;;
|
;;
|
||||||
reboot)
|
reboot)
|
||||||
DEFAULT_ACTION="/usr/bin/reboot -f"
|
DEFAULT_ACTION="reboot -f"
|
||||||
;;
|
;;
|
||||||
halt)
|
halt)
|
||||||
DEFAULT_ACTION="/usr/bin/halt -f"
|
DEFAULT_ACTION="halt -f"
|
||||||
;;
|
;;
|
||||||
poweroff)
|
poweroff)
|
||||||
DEFAULT_ACTION="/usr/bin/poweroff -f"
|
DEFAULT_ACTION="poweroff -f"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
@ -40,6 +42,7 @@ read_kdump_conf()
|
|||||||
|
|
||||||
do_default_action()
|
do_default_action()
|
||||||
{
|
{
|
||||||
|
wait_for_loginit
|
||||||
$DEFAULT_ACTION
|
$DEFAULT_ACTION
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: kexec-tools
|
Name: kexec-tools
|
||||||
Version: 2.0.2
|
Version: 2.0.2
|
||||||
Release: 13%{?dist}
|
Release: 14%{?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-14
|
||||||
|
- Wait for loginit.
|
||||||
|
|
||||||
* Wed Jul 27 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-13
|
* Wed Jul 27 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-13
|
||||||
- Use absolute path of reboot/halt/poweroff.
|
- Use absolute path of reboot/halt/poweroff.
|
||||||
|
|
||||||
|
14
mkdumprd
14
mkdumprd
@ -70,20 +70,6 @@ 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
|
||||||
|
1
sources
1
sources
@ -7,3 +7,4 @@ d872bdde29eb036cd59e7b71c148fca6 dracut-files.tbz2
|
|||||||
729603e26a37b91aafd52966300693f8 dracut-files.tbz2
|
729603e26a37b91aafd52966300693f8 dracut-files.tbz2
|
||||||
1c866f72a724807d4dc23fa8571b8e08 dracut-files.tbz2
|
1c866f72a724807d4dc23fa8571b8e08 dracut-files.tbz2
|
||||||
7d1516ae8af7000cec149b9409f9b859 dracut-files.tbz2
|
7d1516ae8af7000cec149b9409f9b859 dracut-files.tbz2
|
||||||
|
ea7a345cbaa0d3d9a9dbd46631155550 dracut-files.tbz2
|
||||||
|
Loading…
Reference in New Issue
Block a user