Hi Lichen,
On Tue, Jun 21, 2022 at 6:00 PM Lichen Liu <lichliu(a)redhat.com> wrote:
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
+
How about replacing the for loop to something like:
boot_dirlist="$(echo /boot/ostree/*) $boot_dirlist"
Thanks,
Tao Liu
# 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
_______________________________________________
kexec mailing list -- kexec(a)lists.fedoraproject.org
To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure