forked from pool/kexec-tools
This commit is contained in:
parent
8c2ff91cbc
commit
18b0591328
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 13 16:41:27 CEST 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
- Fix runlevels (Default-Start, Default-Stop) in kexec.init.
|
||||||
|
- Only load kexec kernel when kexec reboot is enabled when the
|
||||||
|
target runlevel is 6 (reboot) to avoid slowdown of shutdown in
|
||||||
|
that case.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 09 19:00:04 CEST 2008 - bwalle@suse.de
|
Thu Oct 09 19:00:04 CEST 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ PreReq: %insserv_prereq %fillup_prereq
|
|||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Summary: Tools for fast kernel loading
|
Summary: Tools for fast kernel loading
|
||||||
Version: 2.0.0
|
Version: 2.0.0
|
||||||
Release: 39
|
Release: 40
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: kexec-bootloader
|
Source1: kexec-bootloader
|
||||||
Source2: kexec-bootloader.8.txt
|
Source2: kexec-bootloader.8.txt
|
||||||
@ -146,6 +146,11 @@ install -m 0755 kexec.init ${RPM_BUILD_ROOT}/etc/init.d/kexec
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 13 2008 bwalle@suse.de
|
||||||
|
- Fix runlevels (Default-Start, Default-Stop) in kexec.init.
|
||||||
|
- Only load kexec kernel when kexec reboot is enabled when the
|
||||||
|
target runlevel is 6 (reboot) to avoid slowdown of shutdown in
|
||||||
|
that case.
|
||||||
* Thu Oct 09 2008 bwalle@suse.de
|
* Thu Oct 09 2008 bwalle@suse.de
|
||||||
- PPC64: Use return value of count_dyn_reconf_memory_ranges().
|
- PPC64: Use return value of count_dyn_reconf_memory_ranges().
|
||||||
* Thu Oct 09 2008 bwalle@suse.de
|
* Thu Oct 09 2008 bwalle@suse.de
|
||||||
|
36
kexec.init
36
kexec.init
@ -5,12 +5,12 @@
|
|||||||
#
|
#
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: kexec
|
# Provides: kexec
|
||||||
# Required-Start: $remote_fs
|
# Required-Start: $null
|
||||||
# Should-Start:
|
# Should-Start:
|
||||||
# Should-Stop:
|
# Should-Stop:
|
||||||
# Required-Stop: $remote_fs
|
# Required-Stop: $local_fs $remote_fs
|
||||||
# Default-Start: $null
|
# Default-Start: 1 2 3 5 S
|
||||||
# Default-Stop: 1 2 3 5
|
# Default-Stop: 1 2 3 5 S
|
||||||
# Short-Description: Enables reboot through kexec
|
# Short-Description: Enables reboot through kexec
|
||||||
# Description: Enables reboot through kexec
|
# Description: Enables reboot through kexec
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
@ -23,19 +23,25 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
if ! [ -f /sys/kernel/kexec_loaded ] ; then
|
# Only execute that script if we're going to reboot the system.
|
||||||
echo -n "Cannot check if kexec kernel has been loaded."
|
if [ "$RUNLEVEL" -eq 6 ] ; then
|
||||||
rc_failed
|
if ! [ -f /sys/kernel/kexec_loaded ] ; then
|
||||||
else
|
echo -n "Cannot check if kexec kernel has been loaded."
|
||||||
read -t 2 kexec_loaded < /sys/kernel/kexec_loaded
|
rc_failed
|
||||||
if [ "$kexec_loaded" -ne 0 ] ; then
|
|
||||||
echo -n "kexec kernel already loaded."
|
|
||||||
rc_status -s
|
|
||||||
else
|
else
|
||||||
echo -n "Loading kexec kernel for reboot ..."
|
read -t 2 kexec_loaded < /sys/kernel/kexec_loaded
|
||||||
$KEXEC_BOOTLOADER
|
if [ "$kexec_loaded" -ne 0 ] ; then
|
||||||
rc_status -v
|
echo -n "kexec kernel already loaded."
|
||||||
|
rc_status -s
|
||||||
|
else
|
||||||
|
echo -n "Loading kexec kernel for reboot ..."
|
||||||
|
$KEXEC_BOOTLOADER
|
||||||
|
rc_status -v
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "Loading kexec kernel ..."
|
||||||
|
rc_status -s
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
|
Loading…
Reference in New Issue
Block a user