The kernel of CoreOS is not in the standard locations, add
/boot/ostree/* to the boot_dirlist to find the vmlinuz.
Signed-off-by: Lichen Liu <lichliu(a)redhat.com>
---
kdump-lib.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/kdump-lib.sh b/kdump-lib.sh
index 36437ab..3e8d8a5 100755
--- a/kdump-lib.sh
+++ b/kdump-lib.sh
@@ -644,6 +644,14 @@ prepare_kdump_kernel()
boot_dirlist=${KDUMP_BOOTDIR:-"/boot /boot/efi /efi /"}
boot_imglist="$KDUMP_IMG-$kdump_kernelver$KDUMP_IMG_EXT
$machine_id/$kdump_kernelver/$KDUMP_IMG"
+ # The kernel of CoreOS is not in the standard locations.
+ if is_atomic; then
+ local coreos_boot_dir
+ for coreos_boot_dir in /boot/ostree/*; do
+ boot_dirlist="$coreos_boot_dir $boot_dirlist"
+ done
+ fi
+
# Use BOOT_IMAGE as reference if possible, strip the GRUB root device prefix in
(hd0,gpt1) format
boot_img="$(sed "s/^BOOT_IMAGE=\((\S*)\)\?\(\S*\) .*/\2/"
/proc/cmdline)"
if [[ "$boot_img" == *"$kdump_kernelver" ]]; then
--
2.31.1