From 7d6ef48a5afee1d86f2757c3ffb09553d319528b Mon Sep 17 00:00:00 2001 From: WANG Chao Date: Wed, 4 Dec 2013 21:47:07 +0800 Subject: [PATCH] Add makedumpfile.conf and its man page makedumpfile can filter out kernel data from vmcore[1]. A how-to of feature is well explained in makedumpfile.conf, which upstream is already shipping but we're not. Now add makedumpfile.conf and its man page to our package the upstream way: makedumpfile.conf --> /etc/makedumpfile.conf.sample makedumpfile.conf.5.gz --> /usr/share/man/man5/makedumpfile.conf.5.gz [1]. http://lists.infradead.org/pipermail/kexec/2011-September/005466.html Signed-off-by: WANG Chao Acked-by: Vivek Goyal --- kexec-tools.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kexec-tools.spec b/kexec-tools.spec index 1f0f344..c800169 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -210,6 +210,8 @@ install -m 755 %{SOURCE17} $RPM_BUILD_ROOT/usr/sbin/rhcrashkernel-param %ifarch %{ix86} x86_64 ia64 ppc64 s390x install -m 755 makedumpfile-1.5.4/makedumpfile $RPM_BUILD_ROOT/sbin/makedumpfile install -m 644 makedumpfile-1.5.4/makedumpfile.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/makedumpfile.8.gz +install -m 644 makedumpfile-1.5.4/makedumpfile.conf.5.gz $RPM_BUILD_ROOT/%{_mandir}/man5/makedumpfile.conf.5.gz +install -m 644 makedumpfile-1.5.4/makedumpfile.conf $RPM_BUILD_ROOT/%{_sysconfdir}/makedumpfile.conf.sample install -m 755 makedumpfile-1.5.4/eppic_makedumpfile.so $RPM_BUILD_ROOT/%{_libdir}/eppic_makedumpfile.so %endif make -C kexec-tools-po install DESTDIR=$RPM_BUILD_ROOT @@ -328,6 +330,9 @@ done %{_bindir}/* %{_datadir}/kdump %{_prefix}/lib/kdump +%ifarch %{ix86} x86_64 ia64 ppc64 s390x +%{_sysconfdir}/makedumpfile.conf.sample +%endif %config(noreplace,missingok) %{_sysconfdir}/sysconfig/kdump %config(noreplace,missingok) %{_sysconfdir}/kdump.conf %ifnarch s390x