From bfe235b413b6a58988e75b276e6c5dcf92001296 Mon Sep 17 00:00:00 2001 From: Lichen Liu Date: Thu, 22 Dec 2022 13:30:41 +0800 Subject: [PATCH] spec: only install mkfadumprd for ppc Resolves: bz2139000 Upstream: Fedora Conflict: None commit 748eb3a2a6b41bc74748f1f1845b91b77548e1d8 Author: Kairui Song Date: Sun Jan 9 18:03:35 2022 +0800 spec: only install mkfadumprd for ppc fadump is a ppc only feature, mkfadumprd is only needed for fadump, drop it for other arch. Reviewed-by: Philipp Rudo Signed-off-by: Kairui Song Signed-off-by: Lichen Liu --- kexec-tools.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kexec-tools.spec b/kexec-tools.spec index ab62228..27c0e7a 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -195,7 +195,6 @@ SYSCONFIG=$RPM_SOURCE_DIR/kdump.sysconfig.%{_target_cpu} install -m 644 $SYSCONFIG $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/kdump install -m 755 %{SOURCE7} $RPM_BUILD_ROOT/usr/sbin/mkdumprd -install -m 755 %{SOURCE32} $RPM_BUILD_ROOT/usr/sbin/mkfadumprd install -m 644 kdump.conf $RPM_BUILD_ROOT%{_sysconfdir}/kdump.conf install -m 644 kexec/kexec.8 $RPM_BUILD_ROOT%{_mandir}/man8/kexec.8 install -m 644 %{SOURCE12} $RPM_BUILD_ROOT%{_mandir}/man8/mkdumprd.8 @@ -204,6 +203,7 @@ install -m 755 %{SOURCE20} $RPM_BUILD_ROOT%{_prefix}/lib/kdump/kdump-lib.sh install -m 755 %{SOURCE23} $RPM_BUILD_ROOT%{_prefix}/lib/kdump/kdump-lib-initramfs.sh install -m 755 %{SOURCE31} $RPM_BUILD_ROOT%{_prefix}/lib/kdump/kdump-logger.sh %ifarch ppc64 ppc64le +install -m 755 %{SOURCE32} $RPM_BUILD_ROOT/usr/sbin/mkfadumprd install -m 755 %{SOURCE35} $RPM_BUILD_ROOT%{_prefix}/lib/kdump/kdump-migrate-action.sh install -m 755 %{SOURCE36} $RPM_BUILD_ROOT%{_prefix}/lib/kdump/kdump-restart.sh %endif @@ -379,8 +379,10 @@ fi %ifarch %{ix86} x86_64 ppc64 s390x ppc64le aarch64 /usr/sbin/makedumpfile %endif -/usr/sbin/mkdumprd +%ifarch ppc64 ppc64le /usr/sbin/mkfadumprd +%endif +/usr/sbin/mkdumprd /usr/sbin/vmcore-dmesg %{_bindir}/* %{_datadir}/kdump