Name: kexec-tools Version: 1.101 Release: 13 License: GPL Group: Applications/System Summary: The kexec/kdump userspace component. ExclusiveArch: %{ix86} x86_64 Source0: %{name}-%{version}.tar.gz Source1: kdump.init Source2: kdump.sysconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires(pre): coreutils chkconfig sed # # 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 # Patch101: kexec-tools-1.101-disable-kdump-x8664.patch # # Patches 201 through 300 are meant for ia64 kexec-tools enablement # # # Patches 301 through 400 are meant for ppc64 kexec-tools enablement # Patch501: kexec-tools-1.101-Makefile.patch %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 %patch101 -p1 %patch501 -p1 cp $RPM_SOURCE_DIR/kdump.init . cp $RPM_SOURCE_DIR/kdump.sysconfig . %build %configure --sbindir=/sbin rm -f kexec-tools.spec.in make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT 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 %clean rm -rf $RPM_BUILD_ROOT %post 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 chkconfig --add kdump %postun 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 %files %defattr(-,root,root,-) /sbin/* %config(noreplace,missingok) /etc/sysconfig/kdump %config /etc/rc.d/init.d/kdump %{_libdir}/kexec-tools/kexec_test %doc News %doc COPYING %doc TODO %changelog * Mon Mar 6 2006 Jeremy Katz - 1.101-13 - proper requires for scriptlets * Mon Mar 06 2006 Thomas Graf - 1.101-12 - Move kexec and kdump binaries to /sbin * Thu Mar 02 2006 Thomas Graf - 1.101-11 - Fix argument order when stopping kexec * Mon Feb 27 2006 Thomas Graf - 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 * Wed Feb 22 2006 Thomas Graf - 1.101-9 - Remove wrong quotes around --command-line in kdump.init * Fri Feb 17 2006 Jeff Moyer - 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. * Tue Feb 07 2006 Jesse Keating - 1.101-7.1.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Thu Feb 02 2006 Thomas Graf - 1.101-7.1 - Add patch to enable the kdump binary for x86_64 * Wed Feb 01 2006 Thomas Graf - New kdump patch to support s390 arch + various fixes - Include kdump in x86_64 builds * Mon Jan 30 2006 Thomas Graf - New kdump patch to support x86_64 userspace * Fri Dec 16 2005 Jesse Keating - rebuilt for new gcj * Wed Nov 16 2005 Thomas Graf - 1.101-5 - Report missing kdump kernel image as warning * Thu Nov 3 2005 Jeff Moyer - 1.101-4 - Build for x86_64 as well. Kdump support doesn't work there, but users should be able to use kexec. * Fri Sep 23 2005 Jeff Moyer - 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 - Initial prototype for RH/FC5