Modify the kexec-tools.spec file to generate a kdump-anaconda-addon subpackage
Signed-off-by: Arthur Zou <zzou@redhat.com> Acked-by: Dave Young <dyoung@redhat.com>
This commit is contained in:
parent
2955b1d298
commit
8f963f3318
@ -26,6 +26,7 @@ Source19: eppic_030413.tar.gz
|
||||
Source20: kdump-lib.sh
|
||||
Source21: kdump-in-cluster-environment.txt
|
||||
Source22: kdump-dep-generator.sh
|
||||
Source23: kdump-anaconda-addon-0.1.tar.gz
|
||||
|
||||
#######################################
|
||||
# These are sources for mkdumpramfs
|
||||
@ -96,12 +97,21 @@ The eppic_makedumpfile.so shared object is loaded by the
|
||||
or confidential kernel data from a dumpfile.
|
||||
%endif
|
||||
|
||||
%package -n kdump-anaconda-addon
|
||||
Version: 0.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Kdump configration anaconda addon
|
||||
Requires: anaconda >= 21.33
|
||||
%description -n kdump-anaconda-addon
|
||||
Kdump anaconda addon
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
mkdir -p -m755 kcp
|
||||
tar -z -x -v -f %{SOURCE9}
|
||||
tar -z -x -v -f %{SOURCE19}
|
||||
tar -z -x -v -f %{SOURCE23}
|
||||
|
||||
|
||||
%patch601 -p1
|
||||
@ -133,6 +143,7 @@ make -C eppic/libeppic
|
||||
make -C makedumpfile-1.5.6 LINKTYPE=dynamic USELZO=on USESNAPPY=on
|
||||
%endif
|
||||
make -C kexec-tools-po
|
||||
make -C kdump-anaconda-addon-0.1/po
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
@ -180,6 +191,8 @@ install -m 755 makedumpfile-1.5.6/eppic_makedumpfile.so $RPM_BUILD_ROOT/%{_libdi
|
||||
%endif
|
||||
make -C kexec-tools-po install DESTDIR=$RPM_BUILD_ROOT
|
||||
%find_lang %{name}
|
||||
make -C kdump-anaconda-addon-0.1 install DESTDIR=$RPM_BUILD_ROOT
|
||||
%find_lang kdump-anaconda-addon
|
||||
|
||||
%define remove_dracut_prefix() %(echo -n %1|sed 's/.*dracut-//g')
|
||||
|
||||
@ -312,6 +325,10 @@ done
|
||||
%{_libdir}/eppic_makedumpfile.so
|
||||
%endif
|
||||
|
||||
%files -n kdump-anaconda-addon -f kdump-anaconda-addon.lang
|
||||
%{_datadir}/anaconda/addons/com_redhat_kdump
|
||||
%doc
|
||||
|
||||
%changelog
|
||||
* Wed Apr 30 2014 WANG Chao <chaowang@redhat.com> - 2.0.6-5
|
||||
- Remove nofail mount option
|
||||
|
Loading…
Reference in New Issue
Block a user