diff options
author | David Kaspar [Dee'Kej] <dkaspar@redhat.com> | 2016-11-09 14:58:25 +0100 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2016-11-15 14:26:59 +0100 |
commit | c748b699095d68a2fb12fb26639e3b77a46a44eb (patch) | |
tree | 8c7cca90c7dbedc57cfdaa6bb2af5f6151b4c9a3 | |
parent | a2ecd685d60fd013b121e78aebd5558121f4fb5e (diff) | |
download | initscripts-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.conf | 2 |
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 |