diff --git a/0001-powerpc-fix-early-exit-from-udev-on-hotplug-event-fo.patch b/0001-powerpc-fix-early-exit-from-udev-on-hotplug-event-fo.patch new file mode 100644 index 0000000..3013405 --- /dev/null +++ b/0001-powerpc-fix-early-exit-from-udev-on-hotplug-event-fo.patch @@ -0,0 +1,35 @@ +From 679a1c5a96e4b5fac06f2045db97db21e6a62ff8 Mon Sep 17 00:00:00 2001 +From: Sourabh Jain +Date: Wed, 8 Jan 2025 12:11:10 +0530 +Subject: [PATCH] powerpc: fix early exit from udev on hotplug event for fadump + +Sysfs /sys/kernel/fadump/hotplug_ready contains 1 if hotplug is +supported by fadump. + +Now to exit early the RUN command should grep 0 from +/sys/kernel/fadump/hotplug_ready instead of 1. + +Fix it by updating RUN command. + +Fixes: b4e3d3724cf3 ("fadump/udev: do not re-register fadump if kernel hotplug ready") +Signed-off-by: Sourabh Jain +--- + 98-kexec.rules.ppc64 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/98-kexec.rules.ppc64 b/98-kexec.rules.ppc64 +index 85fe0b1..ac6d42a 100644 +--- a/98-kexec.rules.ppc64 ++++ b/98-kexec.rules.ppc64 +@@ -17,7 +17,7 @@ LABEL="kdump_reload_mem" + + # Don't re-register fadump if /sys/kernel/fadump/hotplug_ready sysfs is set to 1. + +-RUN+="/bin/sh -c '/usr/bin/systemctl is-active kdump.service || exit 0; ! test -f /sys/kernel/fadump/hotplug_ready || cat /sys/kernel/fadump/hotplug_ready | grep 1 || exit 0; /usr/bin/systemd-run --quiet --no-block /usr/lib/udev/kdump-udev-throttler'" ++RUN+="/bin/sh -c '/usr/bin/systemctl is-active kdump.service || exit 0; ! test -f /sys/kernel/fadump/hotplug_ready || cat /sys/kernel/fadump/hotplug_ready | grep 0 || exit 0; /usr/bin/systemd-run --quiet --no-block /usr/lib/udev/kdump-udev-throttler'" + + GOTO="kdump_reload_end" + +-- +2.41.0 + diff --git a/kdump-utils.spec b/kdump-utils.spec index 03eb340..ad291d7 100644 --- a/kdump-utils.spec +++ b/kdump-utils.spec @@ -8,6 +8,7 @@ Summary: Kernel crash dump collection utilities License: GPL-2.0-only URL: https://github.com/rhkdump/kdump-utils Source0: https://github.com/rhkdump/kdump-utils/archive/v%{version}/%{name}-%{version}.tar.gz +Patch01: 0001-powerpc-fix-early-exit-from-udev-on-hotplug-event-fo.patch %ifarch ppc64 ppc64le Requires(post): servicelog