2005-08-29 20:12:47 +00:00
|
|
|
Name: kexec-tools
|
|
|
|
Version: 1.101
|
2006-07-12 06:42:46 +00:00
|
|
|
Release: 29%{dist}.1
|
2005-08-29 20:12:47 +00:00
|
|
|
License: GPL
|
|
|
|
Group: Applications/System
|
|
|
|
Summary: The kexec/kdump userspace component.
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2005-09-23 21:04:31 +00:00
|
|
|
Source1: kdump.init
|
|
|
|
Source2: kdump.sysconfig
|
2005-08-29 20:12:47 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
2006-03-06 21:40:51 +00:00
|
|
|
Requires(pre): coreutils chkconfig sed
|
2006-06-28 14:36:12 +00:00
|
|
|
BuildRequires: zlib-devel
|
2005-08-29 20:12:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Patches 0 through 100 are meant for x86 kexec-tools enablement
|
|
|
|
#
|
|
|
|
Patch1: kexec-tools-1.101-kdump.patch
|
|
|
|
|
|
|
|
#
|
|
|
|
# Patches 101 through 200 are meant for x86_64 kexec-tools enablement
|
|
|
|
#
|
2005-11-03 19:50:47 +00:00
|
|
|
Patch101: kexec-tools-1.101-disable-kdump-x8664.patch
|
2005-08-29 20:12:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Patches 201 through 300 are meant for ia64 kexec-tools enablement
|
|
|
|
#
|
2006-07-05 17:23:51 +00:00
|
|
|
Patch201: kexec-tools-1.101-ia64-fixup.patch
|
2005-08-29 20:12:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Patches 301 through 400 are meant for ppc64 kexec-tools enablement
|
|
|
|
#
|
2006-06-22 17:16:53 +00:00
|
|
|
Patch301: kexec-ppc64-ingnore-args-linux.patch
|
2005-08-29 20:12:47 +00:00
|
|
|
|
2006-07-05 20:08:23 +00:00
|
|
|
#
|
|
|
|
# Patches 401 through 500 are meant for s390 kexec-tools enablement
|
|
|
|
#
|
2006-07-05 20:14:13 +00:00
|
|
|
Patch401: kexec-tools-1.101-s390-fixup.patch
|
2006-07-05 20:08:23 +00:00
|
|
|
|
2006-07-05 20:25:11 +00:00
|
|
|
#
|
|
|
|
# Patches 501 through 600 are meant for ppc kexec-tools enablement
|
|
|
|
#
|
|
|
|
Patch501: kexec-tools-1.101-ppc-fixup.patch
|
|
|
|
|
|
|
|
#
|
|
|
|
# Patches 601 onward are generic patches
|
|
|
|
#
|
|
|
|
Patch601: kexec-tools-1.101-Makefile.patch
|
2006-02-02 10:38:55 +00:00
|
|
|
|
2005-08-29 20:12:47 +00:00
|
|
|
%description
|
|
|
|
kexec-tools provides /sbin/kexec binary that facilitates a new
|
|
|
|
kernel to boot using the kernel's kexec feature either on a
|
|
|
|
normal or a panic reboot. This package contains the /sbin/kexec
|
|
|
|
binary and ancillary utilities that together form the userspace
|
|
|
|
component of the kernel's kexec feature.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
rm -f ../kexec-tools-1.101.spec
|
|
|
|
%patch1 -p1
|
2005-11-03 19:50:47 +00:00
|
|
|
%patch101 -p1
|
2006-07-05 17:23:51 +00:00
|
|
|
%patch201 -p1
|
2006-06-22 17:16:53 +00:00
|
|
|
%patch301 -p1
|
2006-07-05 20:08:23 +00:00
|
|
|
%patch401 -p1
|
2006-02-02 10:38:55 +00:00
|
|
|
%patch501 -p1
|
2006-07-05 20:25:11 +00:00
|
|
|
%patch601 -p1
|
2005-08-29 20:12:47 +00:00
|
|
|
|
2005-09-23 21:04:31 +00:00
|
|
|
cp $RPM_SOURCE_DIR/kdump.init .
|
|
|
|
cp $RPM_SOURCE_DIR/kdump.sysconfig .
|
|
|
|
|
2005-08-29 20:12:47 +00:00
|
|
|
%build
|
2006-03-06 17:47:53 +00:00
|
|
|
%configure --sbindir=/sbin
|
2005-08-29 20:12:47 +00:00
|
|
|
rm -f kexec-tools.spec.in
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2005-09-23 21:04:31 +00:00
|
|
|
mkdir -p -m755 $RPM_BUILD_ROOT/etc/rc.d/init.d
|
|
|
|
mkdir -p -m755 $RPM_BUILD_ROOT/etc/sysconfig
|
|
|
|
install -m 644 kdump.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/kdump
|
|
|
|
install -m 755 kdump.init $RPM_BUILD_ROOT/etc/rc.d/init.d/kdump
|
2005-08-29 20:12:47 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-09-23 21:04:31 +00:00
|
|
|
%post
|
2006-03-08 20:39:23 +00:00
|
|
|
/sbin/chkconfig --add kdump
|
2005-09-23 21:04:31 +00:00
|
|
|
|
|
|
|
%postun
|
2005-11-03 19:50:47 +00:00
|
|
|
|
2005-09-23 21:04:31 +00:00
|
|
|
if [ "$1" -ge 1 ]; then
|
|
|
|
/sbin/service kdump condrestart > /dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
/sbin/service kdump stop > /dev/null 2>&1 || :
|
|
|
|
/sbin/chkconfig --del kdump
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
2005-08-29 20:12:47 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2006-03-06 17:47:53 +00:00
|
|
|
/sbin/*
|
2005-09-23 21:04:31 +00:00
|
|
|
%config(noreplace,missingok) /etc/sysconfig/kdump
|
|
|
|
%config /etc/rc.d/init.d/kdump
|
2006-07-05 19:54:50 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
2005-11-03 19:50:47 +00:00
|
|
|
%{_libdir}/kexec-tools/kexec_test
|
2006-07-05 19:54:50 +00:00
|
|
|
%endif
|
2005-08-29 20:12:47 +00:00
|
|
|
%doc News
|
|
|
|
%doc COPYING
|
|
|
|
%doc TODO
|
|
|
|
|
|
|
|
%changelog
|
2006-07-12 06:42:46 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.101-29%{dist}.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-07-05 20:08:23 +00:00
|
|
|
* Wed Jul 07 2006 Neil Horman <nhorman@redhat.com> 1.101-27.fc6
|
2006-07-05 14:57:41 +00:00
|
|
|
- Modify spec/sysconfig to not autobuild kdump kernel command line
|
|
|
|
- Add dist to revision tag
|
2006-07-05 15:12:12 +00:00
|
|
|
- Build for all arches
|
2006-07-05 14:57:41 +00:00
|
|
|
|
2006-06-28 14:36:12 +00:00
|
|
|
* Wed Jun 28 2006 Karsten Hopp <karsten@redhat.de> 1.101-20
|
|
|
|
- Buildrequire zlib-devel
|
|
|
|
|
2006-06-22 18:27:44 +00:00
|
|
|
* Thu Jun 22 2006 Neil Horman <nhorman@redhat.com> -1.101-19
|
|
|
|
- Bumping rev number
|
|
|
|
|
2006-06-22 17:16:53 +00:00
|
|
|
* Thu Jun 22 2006 Neil Horman <nhorman@redhat.com> -1.101-17
|
|
|
|
- Add patch to allow ppc64 to ignore args-linux option
|
|
|
|
|
2006-03-08 20:39:23 +00:00
|
|
|
* Wed Mar 08 2006 Bill Nottingham <notting@redhat.com> - 1.101-16
|
|
|
|
- fix scriptlet - call chkconfig --add, change the default in the
|
|
|
|
script itself (#183633)
|
|
|
|
|
2006-03-08 15:33:52 +00:00
|
|
|
* Wed Mar 08 2006 Thomas Graf <tgraf@redhat.com> - 1.101-15
|
|
|
|
- Don't add kdump service by default, let the user manually add it to
|
|
|
|
avoid everyone seeing a warning.
|
|
|
|
|
2006-03-07 18:50:02 +00:00
|
|
|
* Tue Mar 07 2006 Thomas Graf <tgraf@redhat.com> - 1.101-14
|
|
|
|
- Fix kdump.init to call kexec from its new location
|
|
|
|
|
2006-03-06 21:40:51 +00:00
|
|
|
* Mon Mar 6 2006 Jeremy Katz <katzj@redhat.com> - 1.101-13
|
|
|
|
- proper requires for scriptlets
|
|
|
|
|
2006-03-06 17:47:53 +00:00
|
|
|
* Mon Mar 06 2006 Thomas Graf <tgraf@redhat.com> - 1.101-12
|
|
|
|
- Move kexec and kdump binaries to /sbin
|
|
|
|
|
2006-03-02 09:18:31 +00:00
|
|
|
* Thu Mar 02 2006 Thomas Graf <tgraf@redhat.com> - 1.101-11
|
|
|
|
- Fix argument order when stopping kexec
|
|
|
|
|
2006-02-27 09:19:03 +00:00
|
|
|
* Mon Feb 27 2006 Thomas Graf <tgraf@redhat.com> - 1.101-10
|
|
|
|
- kdump7.patch
|
|
|
|
o Remove elf32 core headers support for x86_64
|
|
|
|
o Fix x86 prepare elf core header routine
|
|
|
|
o Fix ppc64 kexec -p failure for gcc 4.10
|
|
|
|
o Fix few warnings for gcc 4.10
|
|
|
|
o Add the missing --initrd option for ppc64
|
|
|
|
o Fix ppc64 persistent root device bug
|
|
|
|
- Remove --elf32-core-headers from default configuration, users
|
|
|
|
may re-add it via KEXEC_ARGS.
|
|
|
|
- Remove obsolete KEXEC_HEADERS
|
2006-02-22 20:59:15 +00:00
|
|
|
* Wed Feb 22 2006 Thomas Graf <tgraf@redhat.com> - 1.101-9
|
|
|
|
- Remove wrong quotes around --command-line in kdump.init
|
|
|
|
|
2006-02-17 23:58:33 +00:00
|
|
|
* Fri Feb 17 2006 Jeff Moyer <jmoyer@redhat.com> - 1.101-8
|
|
|
|
- Fix the service stop case. It was previously unloading the wrong kernel.
|
|
|
|
- Implement the "restart" function.
|
|
|
|
- Add the "irqpoll" option as a default kdump kernel commandline parameter.
|
|
|
|
- Create a default kernel command line in the sysconfig file upon rpm install.
|
|
|
|
|
2006-02-07 12:26:54 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.101-7.1.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2006-02-02 10:38:55 +00:00
|
|
|
* Thu Feb 02 2006 Thomas Graf <tgraf@redhat.com> - 1.101-7.1
|
|
|
|
- Add patch to enable the kdump binary for x86_64
|
2006-02-02 10:13:27 +00:00
|
|
|
* Wed Feb 01 2006 Thomas Graf <tgraf@redhat.com>
|
|
|
|
- New kdump patch to support s390 arch + various fixes
|
|
|
|
- Include kdump in x86_64 builds
|
2006-01-30 20:02:36 +00:00
|
|
|
* Mon Jan 30 2006 Thomas Graf <tgraf@redhat.com>
|
|
|
|
- New kdump patch to support x86_64 userspace
|
|
|
|
|
2005-12-16 23:20:48 +00:00
|
|
|
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt for new gcj
|
|
|
|
|
2005-11-22 21:52:53 +00:00
|
|
|
* Wed Nov 16 2005 Thomas Graf <tgraf@redhat.com> - 1.101-5
|
|
|
|
- Report missing kdump kernel image as warning
|
|
|
|
|
2005-11-03 19:50:47 +00:00
|
|
|
* Thu Nov 3 2005 Jeff Moyer <jmoyer@redhat.com> - 1.101-4
|
|
|
|
- Build for x86_64 as well. Kdump support doesn't work there, but users
|
|
|
|
should be able to use kexec.
|
|
|
|
|
2005-09-23 21:04:31 +00:00
|
|
|
* Fri Sep 23 2005 Jeff Moyer <jmoyer@redhat.com> - 1.101-3
|
|
|
|
- Add a kdump sysconfig file and init script
|
|
|
|
- Spec file additions for pre/post install/uninstall
|
|
|
|
|
|
|
|
* Thu Aug 25 2005 Jeff Moyer <jmoyer@redhat.com>
|
2005-08-29 20:12:47 +00:00
|
|
|
- Initial prototype for RH/FC5
|