kdumpctl: remove obsolete code
This commit is contained in:
parent
1345d1582d
commit
4a7c912848
21
kdumpctl
21
kdumpctl
@ -9,6 +9,7 @@ KDUMP_KERNELVER=""
|
|||||||
KDUMP_COMMANDLINE=""
|
KDUMP_COMMANDLINE=""
|
||||||
KEXEC_ARGS=""
|
KEXEC_ARGS=""
|
||||||
KDUMP_CONFIG_FILE="/etc/kdump.conf"
|
KDUMP_CONFIG_FILE="/etc/kdump.conf"
|
||||||
|
MKDUMPRD="/sbin/mkdumprd -d -f"
|
||||||
|
|
||||||
LOGGER="/usr/bin/logger -p info -t kdump"
|
LOGGER="/usr/bin/logger -p info -t kdump"
|
||||||
|
|
||||||
@ -45,26 +46,8 @@ function save_core()
|
|||||||
|
|
||||||
function check_config()
|
function check_config()
|
||||||
{
|
{
|
||||||
if [ -f /etc/kdump-adv-conf/initramfs.conf ]
|
|
||||||
then
|
|
||||||
$LOGGER "Using Kdump advanced configuration service"
|
|
||||||
if [ -n "$DRACUT_CMD" ]
|
|
||||||
then
|
|
||||||
MKDUMPRD=$DRACUT_CMD
|
|
||||||
else
|
|
||||||
MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
|
|
||||||
fi
|
|
||||||
# We always rebuild here, since it takes longer
|
|
||||||
# to figure out if anything has changed
|
|
||||||
touch /etc/kdump.conf
|
|
||||||
else
|
|
||||||
MKDUMPRD="/sbin/mkdumprd -d -f"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$KDUMP_KERNELVER" ]; then
|
if [ -z "$KDUMP_KERNELVER" ]; then
|
||||||
local running_kernel=`uname -r`
|
kdump_kver=`uname -r`
|
||||||
|
|
||||||
kdump_kver=`echo $running_kernel | sed 's/smp//g'`
|
|
||||||
else
|
else
|
||||||
kdump_kver=$KDUMP_KERNELVER
|
kdump_kver=$KDUMP_KERNELVER
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: kexec-tools
|
Name: kexec-tools
|
||||||
Version: 2.0.2
|
Version: 2.0.2
|
||||||
Release: 6%{?dist}
|
Release: 7%{?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
|
||||||
|
* Mon Jul 25 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-7
|
||||||
|
- Remove obsolete code in kdumpctl.
|
||||||
|
|
||||||
* Mon Jul 25 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-6
|
* Mon Jul 25 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-6
|
||||||
- Support core_collector and extran_bins.
|
- Support core_collector and extran_bins.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user