2005-08-29 20:12:47 +00:00
|
|
|
Name: kexec-tools
|
|
|
|
Version: 1.101
|
2006-02-17 23:58:33 +00:00
|
|
|
Release: 8
|
2005-08-29 20:12:47 +00:00
|
|
|
License: GPL
|
|
|
|
Group: Applications/System
|
|
|
|
Summary: The kexec/kdump userspace component.
|
2005-11-03 19:50:47 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64
|
2005-08-29 20:12:47 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Patches 301 through 400 are meant for ppc64 kexec-tools enablement
|
|
|
|
#
|
|
|
|
|
2006-02-02 10:38:55 +00:00
|
|
|
Patch501: kexec-tools-1.101-Makefile.patch
|
|
|
|
|
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-02-02 10:38:55 +00:00
|
|
|
%patch501 -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
|
|
|
|
%configure
|
|
|
|
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-02-17 23:58:33 +00:00
|
|
|
KDUMP_COMMANDLINE=`cat /proc/cmdline`
|
|
|
|
KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[0-9]\+M@[0-9]\+M//g'`
|
|
|
|
export KDUMP_COMMANDLINE
|
|
|
|
sed -i -e "s|REPLACEME|$KDUMP_COMMANDLINE irqpoll|g" /etc/sysconfig/kdump
|
2005-09-23 21:04:31 +00:00
|
|
|
chkconfig --add kdump
|
|
|
|
|
|
|
|
%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,-)
|
|
|
|
%{_sbindir}/kexec
|
|
|
|
%{_sbindir}/kdump
|
2005-09-23 21:04:31 +00:00
|
|
|
%config(noreplace,missingok) /etc/sysconfig/kdump
|
|
|
|
%config /etc/rc.d/init.d/kdump
|
2005-11-03 19:50:47 +00:00
|
|
|
|
|
|
|
%{_libdir}/kexec-tools/kexec_test
|
2005-08-29 20:12:47 +00:00
|
|
|
%doc News
|
|
|
|
%doc COPYING
|
|
|
|
%doc TODO
|
|
|
|
|
|
|
|
%changelog
|
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
|