kdumpctl: remove obsolete code

This commit is contained in:
Amerigo Wang 2011-07-25 18:04:32 +08:00
parent 1345d1582d
commit 4a7c912848
2 changed files with 6 additions and 20 deletions

View File

@ -9,6 +9,7 @@ KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MKDUMPRD="/sbin/mkdumprd -d -f"
LOGGER="/usr/bin/logger -p info -t kdump"
@ -45,26 +46,8 @@ function save_core()
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
local running_kernel=`uname -r`
kdump_kver=`echo $running_kernel | sed 's/smp//g'`
kdump_kver=`uname -r`
else
kdump_kver=$KDUMP_KERNELVER
fi

View File

@ -1,6 +1,6 @@
Name: kexec-tools
Version: 2.0.2
Release: 6%{?dist}
Release: 7%{?dist}
License: GPLv2
Group: Applications/System
Summary: The kexec/kdump userspace component.
@ -281,6 +281,9 @@ done
%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
- Support core_collector and extran_bins.