aboutsummaryrefslogtreecommitdiffstats
path: root/init/kexec-disable.conf
blob: d8d22d7a1e359491fb084ab987872753c25b2674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# On machines where kexec isn't going to be used, free the memory reserved for it.
#
# Do not edit this file directly. If you want to change the behaviour,
# please create a file kexec-disable.override and put your changes there.

start on runlevel [!S016]
task

script
	if [ ! -x /sbin/kexec ] || ! chkconfig kdump 2>/dev/null ; then
		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
end script