diff --git a/kdump-kdumprd-Look-for-boot-image-and-boot-Image.patch b/kdump-kdumprd-Look-for-boot-image-and-boot-Image.patch new file mode 100644 index 0000000..89e76ee --- /dev/null +++ b/kdump-kdumprd-Look-for-boot-image-and-boot-Image.patch @@ -0,0 +1,33 @@ +From d332bb87cd1d093f8b78ff3d79413d84fa26dea3 Mon Sep 17 00:00:00 2001 +From: Petr Tesarik +Date: Fri, 26 Apr 2019 09:27:40 +0200 +Subject: kdumprd: Look for /boot/image-* and /boot/Image-* +References: bsc#1132799 +Upstream: merged +Git-commit: d332bb87cd1d093f8b78ff3d79413d84fa26dea3 + +These kernel image names are used on s390(x) and arm*/aarch64, +respectively. Without this change, the path to the kernel must be +given explicitly on the command line if a specific kernel version is +required. + +Signed-off-by: Petr Tesarik +--- + init/mkdumprd | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +--- a/init/mkdumprd ++++ b/init/mkdumprd +@@ -125,9 +125,9 @@ shift $(($OPTIND -1)) + if [ -z "$KERNEL" ] ; then + if [ -n "$KERNELVERSION" ] ; then + KERNEL=/boot/vmlinuz-$KERNELVERSION +- if ! [ -f "$KERNEL" ] ; then +- KERNEL=/boot/vmlinux-$KERNELVERSION +- fi ++ test -f "$KERNEL" || KERNEL=/boot/image-$KERNELVERSION ++ test -f "$KERNEL" || KERNEL=/boot/Image-$KERNELVERSION ++ test -f "$KERNEL" || KERNEL=/boot/vmlinux-$KERNELVERSION + else + output=$(kdumptool find_kernel $find_kernel_args) + KERNEL=$(echo "$output" | grep ^Kernel | cut -f 2) diff --git a/kdump.changes b/kdump.changes index 2a21b3d..e6247bf 100644 --- a/kdump.changes +++ b/kdump.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 26 07:36:54 UTC 2019 - Petr Tesarik + +- kdump-kdumprd-Look-for-boot-image-and-boot-Image.patch: kdumprd: + Look for /boot/image-* and /boot/Image-* (bsc#1132799). + ------------------------------------------------------------------- Tue Apr 16 09:12:51 UTC 2019 - ptesarik@suse.com diff --git a/kdump.spec b/kdump.spec index 1487646..c9c91e3 100644 --- a/kdump.spec +++ b/kdump.spec @@ -61,6 +61,7 @@ Patch12: %{name}-fallback-re-register-fadump-from-userspace.patch Patch13: %{name}-recover-from-missing-CRASHTIME.patch Patch14: %{name}-fix-multipath-user_friendly_names.patch Patch15: %{name}-Add-skip_balance-option-to-BTRFS-mounts.patch +Patch16: %{name}-kdumprd-Look-for-boot-image-and-boot-Image.patch BuildRequires: asciidoc BuildRequires: cmake BuildRequires: gcc-c++ @@ -133,6 +134,7 @@ after a crash dump has occured. %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 -p1 %build export CFLAGS="%{optflags}"