- Fix the service stop case. It was previously unloading the wrong kernel.
- Implement the "restart" function. - Add the "irqpoll" option as a default kdump kernel commandline parameter. - Create a default kernel command line in the sysconfig file upon rpm install.
This commit is contained in:
parent
b0074c8123
commit
26078bcc24
@ -75,6 +75,7 @@ function load_kdump()
|
|||||||
if [ -z "$KDUMP_COMMANDLINE" ]; then
|
if [ -z "$KDUMP_COMMANDLINE" ]; then
|
||||||
KDUMP_COMMANDLINE=`cat /proc/cmdline`
|
KDUMP_COMMANDLINE=`cat /proc/cmdline`
|
||||||
KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[0-9]\+M@[0-9]\+M//g'`
|
KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[0-9]\+M@[0-9]\+M//g'`
|
||||||
|
KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} irqpoll"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$KEXEC $KEXEC_ARGS $standard_kexec_args $KEXEC_HEADERS \
|
$KEXEC $KEXEC_ARGS $standard_kexec_args $KEXEC_HEADERS \
|
||||||
@ -92,13 +93,14 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
$KEXEC -u
|
$KEXEC -u -p
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
echo "not implemented"
|
echo "not implemented"
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
echo "not implemented"
|
$KEXEC -u -p
|
||||||
|
load_kdump
|
||||||
;;
|
;;
|
||||||
condrestart)
|
condrestart)
|
||||||
;;
|
;;
|
||||||
|
@ -9,7 +9,7 @@ KDUMP_KERNELVER=""
|
|||||||
# KDUMP_COMMANDLINE="ro root=LABEL=/"
|
# KDUMP_COMMANDLINE="ro root=LABEL=/"
|
||||||
# If a command line is not specified, the default will be taken from
|
# If a command line is not specified, the default will be taken from
|
||||||
# /proc/cmdline
|
# /proc/cmdline
|
||||||
KDUMP_COMMANDLINE=""
|
KDUMP_COMMANDLINE="REPLACEME"
|
||||||
|
|
||||||
# Any additional kexec arguments required. In most situations, this should
|
# Any additional kexec arguments required. In most situations, this should
|
||||||
# be left empty
|
# be left empty
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: kexec-tools
|
Name: kexec-tools
|
||||||
Version: 1.101
|
Version: 1.101
|
||||||
Release: 7.1.1
|
Release: 8
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: The kexec/kdump userspace component.
|
Summary: The kexec/kdump userspace component.
|
||||||
@ -64,6 +64,10 @@ install -m 755 kdump.init $RPM_BUILD_ROOT/etc/rc.d/init.d/kdump
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
KDUMP_COMMANDLINE=`cat /proc/cmdline`
|
||||||
|
KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[0-9]\+M@[0-9]\+M//g'`
|
||||||
|
export KDUMP_COMMANDLINE
|
||||||
|
sed -i -e "s|REPLACEME|$KDUMP_COMMANDLINE irqpoll|g" /etc/sysconfig/kdump
|
||||||
chkconfig --add kdump
|
chkconfig --add kdump
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
@ -92,6 +96,12 @@ exit 0
|
|||||||
%doc TODO
|
%doc TODO
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 17 2006 Jeff Moyer <jmoyer@redhat.com> - 1.101-8
|
||||||
|
- Fix the service stop case. It was previously unloading the wrong kernel.
|
||||||
|
- Implement the "restart" function.
|
||||||
|
- Add the "irqpoll" option as a default kdump kernel commandline parameter.
|
||||||
|
- Create a default kernel command line in the sysconfig file upon rpm install.
|
||||||
|
|
||||||
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.101-7.1.1
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.101-7.1.1
|
||||||
- rebuilt for new gcc4.1 snapshot and glibc changes
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user