Trying to use crashdump especially in a KVM machine.
Installation looks fine and the reboot is triggered.
But it does not work because the kernel does not have a 'crashkernel=' parameter.
Nothing in /proc/cmdline:
$ cat /proc/cmdline
root=LABEL=cloudimg-rootfs
Issue seems to be in adding the crashkernel line in this snippet:
# Customize crashkernel= value according to architecture
ARCH="$(arch)"
DEF_PRESET="384M-:128M"
case "$ARCH" in
s390x)
HAS_CRASHKERNEL="$(grep crashkernel /etc/zipl.conf)" || true
if test -z "$HAS_CRASHKERNEL"; then
sed -i "/parameters/{s|\"$| crashkernel=${DEF_PRESET}\"|}" /etc/zipl.conf
zipl
fi CIO_IGNORE="$(cio_ignore -u -k)"
sed -i "s/\#KDUMP_CMDLINE_APPEND/KDUMP_CMDLINE_APPEND/" $INITCONFFILE
sed -i "/KDUMP_CMDLINE_APPEND/{s|\"$| ${CIO_IGNORE}\"|}" $INITCONFFILE
;;
esac
Trying to use crashdump especially in a KVM machine. cloudimg- rootfs
Installation looks fine and the reboot is triggered.
But it does not work because the kernel does not have a 'crashkernel=' parameter.
Nothing in /proc/cmdline:
$ cat /proc/cmdline
root=LABEL=
Issue seems to be in adding the crashkernel line in this snippet: "384M-: 128M" CRASHKERNEL= "$(grep crashkernel /etc/zipl.conf)" || true {s|\"$| crashkernel= ${DEF_PRESET} \"|}" /etc/zipl.conf
CIO_IGNORE= "$(cio_ ignore -u -k)" CMDLINE_ APPEND/ KDUMP_CMDLINE_ APPEND/ " $INITCONFFILE CMDLINE_ APPEND/ {s|\"$| ${CIO_IGNORE}\"|}" $INITCONFFILE
# Customize crashkernel= value according to architecture
ARCH="$(arch)"
DEF_PRESET=
case "$ARCH" in
s390x)
HAS_
if test -z "$HAS_CRASHKERNEL"; then
sed -i "/parameters/
zipl
fi
sed -i "s/\#KDUMP_
sed -i "/KDUMP_
;;
esac
(especially 1st sed stmt)