diff --git a/00-default.conf b/00-default.conf index 5d63a9e..64569cb 100644 --- a/00-default.conf +++ b/00-default.conf @@ -68,3 +68,7 @@ GRUB_AUTOSET=1 GRUB_BOOT_FILE="/boot/grub/grub.cfg" GRUB_CFG_FILE="/etc/default/grub" GRUB_CMDLINE="crashkernel=256M " +# If the BOOT_IMAGE kernel command line parameter begins with this, it will be +# removed. For example, if you use btrfs and have a root sub-volume called "@", +# set this to "/@" +GRUB_BOOT_IMAGE_PREFIX="" diff --git a/kdumpst-load.sh.in b/kdumpst-load.sh.in index 20f16c6..4fea06e 100644 --- a/kdumpst-load.sh.in +++ b/kdumpst-load.sh.in @@ -200,7 +200,7 @@ KDUMP_CMDLINE="${KDUMP_CMDLINE} ${KDUMP_APPEND_CMDLINE}" # information. If it fails, then attempt prepending /boot into that (faced # both situations in the field so far). VMLINUX="$(grep -o 'BOOT_IMAGE=[^ ]*' /proc/cmdline)" -VMLINUX="${VMLINUX#*BOOT_IMAGE=}" +VMLINUX="${VMLINUX#*BOOT_IMAGE=${GRUB_BOOT_IMAGE_PREFIX}}" if [ ! -s "${VMLINUX}" ]; then VMLINUX="/boot/${VMLINUX}" if [ ! -s "${VMLINUX}" ]; then @@ -227,3 +227,7 @@ if ! kexec -s -p "${VMLINUX}" --initrd "${INITRD_FNAME}" --append="${KDUMP_CMDLI exit 1 fi logger "kdumpst: panic kexec loaded successfully" + +# Local Variables: +# indent-tabs-mode: t +# End: