From d8ee87cfda73321a635697374443b769bb23e524 Mon Sep 17 00:00:00 2001 From: Pingfan Liu Date: Jun 20 2023 06:56:52 +0000 Subject: kdump-lib: Match 64k debug kernel in prepare_kdump_bootinfo() Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2165839 Upstream: Fedora Conflict: None commit f3139012f290cbc35d262e1d6b24038b12b2c41d Author: Pingfan Liu Date: Tue Jun 20 08:50:31 2023 +0800 kdump-lib: Match 64k debug kernel in prepare_kdump_bootinfo() For kernel 64k variant, it terminates with substring 64k-debug, e.g. vmlinuz-5.14.0-327.el9.aarch64+64k-debug. Providing an extra matching pattern to filter out it. Signed-off-by: Pingfan Liu Reviewed-by: Coiby Xu Signed-off-by: Pingfan Liu --- diff --git a/kdump-lib.sh b/kdump-lib.sh index bc4cedf..27e2154 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -736,7 +736,8 @@ prepare_kdump_bootinfo() return 1 fi - if [[ "$KDUMP_KERNEL" == *"+debug" ]]; then + # For 64k variant, e.g. vmlinuz-5.14.0-327.el9.aarch64+64k-debug + if [[ "$KDUMP_KERNEL" == *"+debug" || "$KDUMP_KERNEL" == *"64k-debug" ]]; then dwarn "Using debug kernel, you may need to set a larger crashkernel than the default value." fi