## Path:        System/Kernel/Kdump
## Description: Crash Dump Configuration

## Type:	string
## Default:	""
## ServiceRestart:	kdump
#
# Kernel Version string for the -kdump kernel. Use an empty string to
# auto-detect a suitable kernel.
#
# See also: kdump(5).
#
KDUMP_KERNELVER=""

## Type:	integer
## Default:	1
## ServiceRestart:	kdump
#
# Number of CPUs to be used in the kdump environment. You may want to
# increase the number if computing power is the bottleneck in your setup.
#
# If the value is zero, use all available CPUs.
#
# See also: kdump(5).
#
KDUMP_CPUS=1

## Type:	string
## Default:	""
## ServiceRestart:	kdump
#
# The kdump commandline is the command line that needs to be passed off to
# the kdump kernel. If a command line is not specified, the default will be
# taken from /proc/cmdline and adjusted.
#
# WARNING: There are a few options that always should be passed to the kdump
# kernel. See kdump(5) for details. Don't use that variable, consider using
# KDUMP_COMMANDLINE_APPEND instead.
#
KDUMP_COMMANDLINE=""

## Type:        string
## Default:     ""
## ServiceRestart:     kdump
#
# Set this variable if you only want to _append_ values to the default
# command line string. The string gets also appended if KDUMP_COMMANDLINE
# is set.
#
# For network based dumps, you may have to add a "net_delay" parameter
# here. Consult the man page for details.
#
# See also: kdump(5).
#
KDUMP_COMMANDLINE_APPEND=""

## Type:        boolean
## Default:     "false"
#
# When this option is set to true, kdump tries to shrink the crash
# kernel reservation at boot.
#
# See also: kdump(6).
#
KDUMP_AUTO_RESIZE="false"

## Type:	string
## Default:	""
## ServiceRestart:	kdump
#
# Additional arguments passed to kexec. Normally you don't have to modify
# the default here.
#
# See also: kdump(5).
#
KEXEC_OPTIONS=""

## Type:	boolean
## Default:	true
## ServiceRestart:	kdump
#
# Immediately reboot after saving the core in the kdump kernel?
#
# See also: kdump(5).
#
KDUMP_IMMEDIATE_REBOOT="true"

## Type:	string
## Default:	""
## ServiceRestart:	kdump
#
# A script or command executed to process and transfer the dump image.
# It can read the dump image either via /proc/vmcore or /dev/oldmem.
#
# WARNING: Setting that option will make most of the other configuration
# options useless. Don't use that option. It's also not supported.
#
# See also: kdump(5).
#
KDUMP_TRANSFER=""

## Type:	string
## Default:	"/var/crash" 
## ServiceRestart:	kdump
#
# Which directory should the dumps be saved in by the default dumper?  This can
# be:
#
#   - a local file, for example "file:///var/crash" (or just
#                               "/var/crash") 
#   - a FTP server, for example "ftp://user:password@host/var/crash" 
#   - a SFTP server, for example "sftp://user[:password]@host/var/crash"
#   - a SSH server, for example "ssh://user[:password]@host/var/crash"
#   - a NFS share, for example "nfs://server/export/var/crash" 
#   - a CIFS (SMB) share, for example "cifs://user:password@host/share/var/crash"
#
# SFTP and SSH targets should use public/private key authentication, see the
# manual page for more details on setting it up.
#
# See also: kdump(5) which contains an exact specification for the URL format.
# Consider using the "yast2 kdump" module if you are unsure.
#
KDUMP_SAVEDIR="/var/crash"

## Type:	integer
## Default:	0
## ServiceRestart:	kdump
#
# Specifies how many old dumps are kept.  If the number of dump files
# exceeds this number, older dumps are removed.
#
# You can prevent the automatic removal by setting zero to this.
# Set KDUMP_KEEP_OLD_DUMPS to "-1" is you want to delete all old
# dumps before saving the new dump.
#
# See also: kdump(5).
#
KDUMP_KEEP_OLD_DUMPS=0

## Type:	integer
## Default:	64
## ServiceRestart:	kdump
#
# Specifies the minimal free disk space (in MB unit) on the dump partition.
# If the free disk space is less than the sum of this value and memory size,
# we won't save vmcore file in order to keep the system sane.
#
# Setting zero forces to dump without check.
#
# See also: kdump(5).
#
KDUMP_FREE_DISK_SIZE=64

## Type:        integer
## Default:     0
## ServiceRestart:	kdump
#
# Determines if kdump uses verbose output. This value is a bitmask:
#
# 1: kdump command line is written to system log when executing
#    /etc/init.d/kdump
# 2: progress is written to stdout while dumping
# 4: kdump command line is written so standard output when executing
#    /etc/init.d/kdump
# 8: Debugging while saving dump.
# 16: Debugging when loading (and detecting) the kdump kernel.
#
# See also: kdump(5).
#
KDUMP_VERBOSE=0

## Type:        integer
## Default:     31
## ServiceRestart:	kdump
#
# Determines the dump level. If KDUMP_DUMPLEVEL non-zero 0, then makedumpfile
# is used to strip pages that may not be necessary for analysing. 0 means
# no stripping, and 31 is the maximum dump level, i.e. 0 produces the
# largest dump files and 31 the smallest.
#
# See kdump(5) or makedumpfile(8) for a full description what that different
# dump levels mean.
#
KDUMP_DUMPLEVEL=31

## Type:        list(,none,ELF,compressed,lzo,snappy,zstd,raw)
## Default:     "compressed"
## ServiceRestart:	kdump
#
# This variable specifies the dump format. Using the "none" option will
# skip capturing the dump entirely and only save the kernel log buffer.
#
# See also: kdump(5).
KDUMP_DUMPFORMAT="compressed"

## Type:        boolean
## Default:     true
## ServiceRestart:	kdump
#
# Set this value to "false" to drop into a debug shell when an error is 
# encountered during saving the dump
#
# See also: kdump(5).
#
KDUMP_CONTINUE_ON_ERROR="true"

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# This is a space-separated list of programs (full path) that are required by
# KDUMP_TRANSFER, KDUMP_PRESCRIPT or KDUMP_POSTSCRIPT.
#
# Dynamic libraries that are required by that programs don't have to be included
# as they are resolved automatically. However, it's necessary to include other
# runtime requirements because it's not possible to resolve them automatically.
#
# See also: kdump(5).
#
KDUMP_REQUIRED_PROGRAMS=""

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# Program that is executed before taking the dump. You have to include that
# program in KDUMP_REQUIRED_PROGRAMS.
#
# See also: kdump(5).
#
KDUMP_PRESCRIPT=""

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# Program that is executed after taking the dump and before the system is
# rebooted. You have to include that program in KDUMP_POSTSCRIPT.
#
# See also: kdump(5).
#
KDUMP_POSTSCRIPT=""

## Type:        string
## Default:     auto
## ServiceRestart:	kdump
#
# Network configuration. Use "auto" for auto-detection in initrd, or a string
# that contains the network device and the mode (static, dhcp, dhcp6, auto6),
# separated by a colon. Example: "eth0:static" or "eth1:dhcp".
#
# For static configuration, you may have to add the configuration to
# KDUMP_COMMANDLINE_APPEND.
#
# By default, network is set up only if needed. Add ":force" to make sure
# that network is always available (e.g. for use by a custom pre- or
# post-script).
#
# See also: kdump(5)
#
KDUMP_NETCONFIG="auto"

## Type:        integer
## Default:     30
## ServiceRestart:      kdump
#
# Timeout for the remote machine to respond to ping.
#
# See also: kdump(5)
#
KDUMP_NET_TIMEOUT=30

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# SMTP server for notifications. 
# Passed to mailx using its "smtp" option.
#
# See also: kdump(5)
#
KDUMP_SMTP_SERVER=""

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# Username used for SMTP authentication. 
# Passed to mailx using its "smtp-auth-user" option.
#
# See also: kdump(5)
#
KDUMP_SMTP_USER=""

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# Password for SMTP AUTH. 
# Passed to mailx using its "smtp-auth-password" option.
# See also: kdump(5)
#
KDUMP_SMTP_PASSWORD=""

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# Email address where notification mails should be sent to. 
# Notifications are sent via a kdump-notify systemd service during boot
# and only work when KDUMP_SAVEDIR points to a local directory.
#
# You either need to configure mailx using /etc/mail.rc or specify
# KDUMP_SMTP_SERVER and optionally KDUMP_SMTP_USER and KDUMP_SMTP_PASSWORD.
#
# See also: kdump(5)
#
KDUMP_NOTIFICATION_TO=""

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# Space-separated list of email addresses where notification mails should be sent
# to via Cc. KDUMP_NOTIFICATION_TO needs to be configured (you can't send
# notifications only to Cc: addresses without a To:).
#
# See also: kdump(5)
#
KDUMP_NOTIFICATION_CC=""

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# Target host public key, encoded with base64. This is used only for the
# SFTP transfer protocol. If empty, kdump will run 'ssh-keygen -F' to get
# the key from known hosts. If set to "*", any host key will be accepted.
#
# See also: kdump(5)
KDUMP_HOST_KEY=""

## Type:        string
## Default:     ""
## ServiceRestart:	kdump
#
# List of SSH identity files for public key authentication. If empty, kdump
# will try all standard OpenSSH identities for the 'root' user.
#
# See also: kdump(5)
KDUMP_SSH_IDENTITY=""
