|
|
db7d74 |
# Kernel Version string for the -kdump kernel, such as 2.6.13-1544.FC5kdump
|
|
|
db7d74 |
# If no version is specified, then the init script will try to find a
|
|
|
db7d74 |
# kdump kernel with the same version number as the running kernel.
|
|
|
db7d74 |
KDUMP_KERNELVER=""
|
|
|
db7d74 |
|
|
|
db7d74 |
# The kdump commandline is the command line that needs to be passed off to
|
|
|
db7d74 |
# the kdump kernel. This will likely match the contents of the grub kernel
|
|
|
db7d74 |
# line. For example:
|
|
|
db7d74 |
# KDUMP_COMMANDLINE="ro root=LABEL=/"
|
|
|
db7d74 |
# Dracut depends on proper root= options, so please make sure that appropriate
|
|
|
db7d74 |
# root= options are copied from /proc/cmdline. In general it is best to append
|
|
|
db7d74 |
# command line options using "KDUMP_COMMANDLINE_APPEND=".
|
|
|
db7d74 |
# If a command line is not specified, the default will be taken from
|
|
|
db7d74 |
# /proc/cmdline
|
|
|
db7d74 |
KDUMP_COMMANDLINE=""
|
|
|
db7d74 |
|
|
|
db7d74 |
# This variable lets us remove arguments from the current kdump commandline
|
|
|
db7d74 |
# as taken from either KDUMP_COMMANDLINE above, or from /proc/cmdline
|
|
|
db7d74 |
# NOTE: some arguments such as crashkernel will always be removed
|
|
|
db7d74 |
KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb cma hugetlb_cma"
|
|
|
db7d74 |
|
|
|
db7d74 |
# This variable lets us append arguments to the current kdump commandline
|
|
|
db7d74 |
# after processed by KDUMP_COMMANDLINE_REMOVE
|
|
|
db7d74 |
KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 acpi_no_memhotplug transparent_hugepage=never nokaslr hest_disable novmcoredd cma=0 hugetlb_cma=0"
|
|
|
db7d74 |
|
|
|
db7d74 |
# Any additional kexec arguments required. In most situations, this should
|
|
|
db7d74 |
# be left empty
|
|
|
db7d74 |
#
|
|
|
db7d74 |
# Example:
|
|
|
db7d74 |
# KEXEC_ARGS="--elf32-core-headers"
|
|
|
db7d74 |
KEXEC_ARGS="-s"
|
|
|
db7d74 |
|
|
|
db7d74 |
#Where to find the boot image
|
|
|
db7d74 |
#KDUMP_BOOTDIR="/boot"
|
|
|
db7d74 |
|
|
|
db7d74 |
#What is the image type used for kdump
|
|
|
db7d74 |
KDUMP_IMG="vmlinuz"
|
|
|
db7d74 |
|
|
|
db7d74 |
#What is the images extension. Relocatable kernels don't have one
|
|
|
db7d74 |
KDUMP_IMG_EXT=""
|
|
|
db7d74 |
|
|
|
db7d74 |
# Logging is controlled by following variables in the first kernel:
|
|
|
db7d74 |
# - @var KDUMP_STDLOGLVL - logging level to standard error (console output)
|
|
|
db7d74 |
# - @var KDUMP_SYSLOGLVL - logging level to syslog (by logger command)
|
|
|
db7d74 |
# - @var KDUMP_KMSGLOGLVL - logging level to /dev/kmsg (only for boot-time)
|
|
|
db7d74 |
#
|
|
|
db7d74 |
# In the second kernel, kdump will use the rd.kdumploglvl option to set the
|
|
|
db7d74 |
# log level in the above KDUMP_COMMANDLINE_APPEND.
|
|
|
db7d74 |
# - @var rd.kdumploglvl - logging level to syslog (by logger command)
|
|
|
db7d74 |
# - for example: add the rd.kdumploglvl=3 option to KDUMP_COMMANDLINE_APPEND
|
|
|
db7d74 |
#
|
|
|
db7d74 |
# Logging levels: no logging(0), error(1),warn(2),info(3),debug(4)
|
|
|
db7d74 |
#
|
|
|
db7d74 |
# KDUMP_STDLOGLVL=3
|
|
|
db7d74 |
# KDUMP_SYSLOGLVL=0
|
|
|
db7d74 |
# KDUMP_KMSGLOGLVL=0
|