aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2016-11-09 14:58:25 +0100
committerDee'Kej <deekej@linuxmail.org>2016-11-15 14:26:59 +0100
commitc748b699095d68a2fb12fb26639e3b77a46a44eb (patch)
tree8c7cca90c7dbedc57cfdaa6bb2af5f6151b4c9a3
parenta2ecd685d60fd013b121e78aebd5558121f4fb5e (diff)
downloadinitscripts-c748b699095d68a2fb12fb26639e3b77a46a44eb.tar
initscripts-c748b699095d68a2fb12fb26639e3b77a46a44eb.tar.gz
initscripts-c748b699095d68a2fb12fb26639e3b77a46a44eb.tar.bz2
initscripts-c748b699095d68a2fb12fb26639e3b77a46a44eb.tar.xz
initscripts-c748b699095d68a2fb12fb26639e3b77a46a44eb.zip
init/kexec-disable.conf: release kexec memory properly
Resolves: RHBZ #1378198
-rw-r--r--init/kexec-disable.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/kexec-disable.conf b/init/kexec-disable.conf
index 5d6ad41e..d8d22d7a 100644
--- a/init/kexec-disable.conf
+++ b/init/kexec-disable.conf
@@ -8,7 +8,7 @@ task
script
if [ ! -x /sbin/kexec ] || ! chkconfig kdump 2>/dev/null ; then
- grep -q "crashkernel=auto" /proc/cmdline && \
+ dmesg | grep --silent --max-count=1 -e '^Command line:.*crashkernel=auto' && \
echo -n "0" > /sys/kernel/kexec_crash_size 2>/dev/null
fi
exit 0