2006-12-20 12:32:29 +01:00
|
|
|
#
|
|
|
|
# spec file for package kexec-tools (Version 1.101)
|
|
|
|
#
|
2007-01-18 01:34:30 +01:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-20 12:32:29 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: kexec-tools
|
2007-01-18 01:34:30 +01:00
|
|
|
%define helperversion 0.1.0
|
2007-02-05 15:39:32 +01:00
|
|
|
%define package_version testing-20070205
|
2006-12-20 12:32:29 +01:00
|
|
|
License: GNU General Public License (GPL)
|
|
|
|
Group: System/Kernel
|
|
|
|
Requires: %insserv_prereq %fillup_prereq
|
|
|
|
Autoreqprov: on
|
|
|
|
Summary: Tools for fast kernel loading
|
|
|
|
Version: 1.101
|
2007-02-07 19:31:50 +01:00
|
|
|
Release: 69
|
2006-12-20 12:32:29 +01:00
|
|
|
Source: %{name}-%{package_version}.tar.bz2
|
|
|
|
Source1: kdump
|
|
|
|
Source2: sysconfig.kdump
|
|
|
|
Source3: gdbinit.kdump
|
|
|
|
Source4: gdb-kdump
|
|
|
|
Source5: README.SUSE
|
2007-01-18 01:34:30 +01:00
|
|
|
Source6: kdump-helper-%{helperversion}.tar.bz2
|
2007-02-05 15:39:32 +01:00
|
|
|
Patch1: kexec-longer-cmdline.diff
|
2006-12-20 12:32:29 +01:00
|
|
|
URL: http://www.xmission.com/~ebiederm/files/kexec/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-18 01:34:30 +01:00
|
|
|
BuildRequires: libelf
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Kexec is a user space utiltity for loading another kernel and asking
|
|
|
|
the currently running kernel to do something with it. A currently
|
|
|
|
running kernel may be asked to start the loaded kernel on reboot, or to
|
|
|
|
start the loaded kernel after it panics.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Eric Biederman <ebiederm@xmission.com>
|
|
|
|
Albert Herranz
|
|
|
|
Jesse Barnes <jbarnes@sgi.com>
|
|
|
|
Khalid Aziz <khalid.aziz@hp.com>
|
|
|
|
Hariprasad Nellitheertha <hari@in.ibm.com>
|
|
|
|
Tim Deegan <tjd21@cl.cam.ac.uk>
|
|
|
|
|
|
|
|
%prep
|
2007-01-18 01:34:30 +01:00
|
|
|
%setup -b 6 -q -n kdump-helper-%{helperversion}
|
2006-12-20 12:32:29 +01:00
|
|
|
%setup -q -n kexec-tools
|
2007-02-05 15:39:32 +01:00
|
|
|
%patch1 -p1
|
2006-12-20 12:32:29 +01:00
|
|
|
%{?suse_update_config -f}
|
|
|
|
cp %{SOURCE5} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
./configure --prefix=/ --sbindir=/sbin --libdir=/%_lib
|
|
|
|
make CPPFLAGS="$RPM_OPT_FLAGS"
|
2007-01-18 01:34:30 +01:00
|
|
|
cd ../kdump-helper-%{helperversion}
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
cd -
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
install -c -m 0644 kexec/kexec.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
install -c -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -s /etc/init.d/kdump $RPM_BUILD_ROOT/sbin/rckdump
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
install -c -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.kdump
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
# add --args-linux kexec command line option as default
|
|
|
|
sed -i 's@^\(KEXEC_OPTIONS="\)\(.*"[[:blank:]]*$\)@\1--args-linux \2@' $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.kdump
|
|
|
|
%endif
|
|
|
|
%ifarch ia64
|
|
|
|
# empty string for kdump kernel version (to indicate the same kernel)
|
|
|
|
sed -i 's@^\(KDUMP_KERNELVER=\).*$@\1""@' $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.kdump
|
|
|
|
%endif
|
|
|
|
# install gdb helpers
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -c -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}
|
|
|
|
install -c -m 0755 %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}
|
2007-01-18 01:34:30 +01:00
|
|
|
cd ../kdump-helper-%{helperversion}
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
cd -
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_and_insserv -n kdump kdump}
|
|
|
|
|
|
|
|
%preun
|
2007-02-07 19:31:50 +01:00
|
|
|
echo "Stopping kexec ..."
|
2006-12-20 12:32:29 +01:00
|
|
|
%stop_on_removal kdump
|
2007-02-07 19:31:50 +01:00
|
|
|
true # ignore errors
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update kdump
|
|
|
|
%insserv_cleanup
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS COPYING News TODO doc
|
|
|
|
%doc README.SUSE
|
|
|
|
%doc %{_mandir}/man*/*
|
|
|
|
/sbin/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/gdbinit.*
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
/%_lib/kexec-tools*
|
|
|
|
%endif
|
|
|
|
/etc/init.d/kdump
|
|
|
|
/var/adm/fillup-templates/sysconfig.kdump
|
2007-01-18 01:34:30 +01:00
|
|
|
%{_sbindir}/kdump-helper
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%changelog -n kexec-tools
|
2007-02-07 19:31:50 +01:00
|
|
|
* Wed Feb 07 2007 - bwalle@suse.de
|
|
|
|
- don't refuse to deinstall kexec-tools if kdump was not configured
|
|
|
|
(#243081)
|
|
|
|
- fixed documentation error (/var/log/dump instead of
|
|
|
|
/var/log/dumps in README.SUSE)
|
|
|
|
(#239506)
|
2007-02-05 15:39:32 +01:00
|
|
|
* Mon Feb 05 2007 - tiwai@suse.de
|
|
|
|
- updated to kexec-tools 2007.02.05:
|
|
|
|
* including last fixes
|
|
|
|
* fix for ppc64 dynamic memory range allocation (#242075)
|
|
|
|
* Fri Feb 02 2007 - bwalle@suse.de
|
|
|
|
- fixes overflow on large IA64 systems (#241544)
|
|
|
|
- added KDUMP_COMMANDLINE_APPEND variable (#241607)
|
|
|
|
- increase the command line size (#236828)
|
2007-01-29 17:02:38 +01:00
|
|
|
* Mon Jan 29 2007 - olh@suse.de
|
|
|
|
- do not unload kdump kernel during runlevel changes (#238733)
|
2007-01-26 00:49:07 +01:00
|
|
|
* Thu Jan 25 2007 - bwalle@suse.de
|
|
|
|
- added documentation for initrd-based kdump saving
|
|
|
|
- fixed description of KDUMP_IMMEDIATE_REBOOT
|
2007-01-24 14:38:15 +01:00
|
|
|
* Wed Jan 24 2007 - tiwai@suse.de
|
|
|
|
- fix invalid /proc/vmcore on ppc64 (#238078).
|
2007-01-18 19:38:27 +01:00
|
|
|
* Thu Jan 18 2007 - bwalle@suse.de
|
|
|
|
- improved documentation as response to #226736
|
2007-01-18 01:34:30 +01:00
|
|
|
* Wed Jan 17 2007 - bwalle@suse.de
|
|
|
|
- implemented Initrd based kdump saving
|
|
|
|
(#301538)
|
2006-12-20 12:32:29 +01:00
|
|
|
* Wed Dec 20 2006 - tiwai@suse.de
|
|
|
|
- take kexec-tools-testing snapshot-20061219.
|
|
|
|
o ia64 support
|
|
|
|
o relocatable kernel support
|
|
|
|
o lots of cleanups/fixes
|
|
|
|
- fix manpage and help about -u option (#208710)
|
|
|
|
- ia64 kdump support (#214865, FATE#301433, FATE#301434)
|
|
|
|
o add boot argument "CRASH=1" to indicate the crash environment
|
|
|
|
(for kexec'ing with the same kernel)
|
|
|
|
o fix kdump init script for ia64, which has only vmlinuz and
|
|
|
|
uses the same kernel for kdump
|
|
|
|
- reduce boot options for kdump kernel (#223500)
|
|
|
|
* Thu Jul 13 2006 - tiwai@suse.de
|
|
|
|
- fixed the calculation of required disk space in kdump
|
|
|
|
init script (#192172)
|
|
|
|
- fix the wrong usage of crash program in README.SUSE
|
|
|
|
* Thu Jun 22 2006 - tiwai@suse.de
|
|
|
|
- fix kexec to reserve ACPI NVS area (#179093)
|
|
|
|
- add more description about chkconfig and kdump service
|
|
|
|
(#183017)
|
|
|
|
* Fri Jun 16 2006 - tiwai@suse.de
|
|
|
|
- add irqpoll boot option for i386 and x86_64 for more robust
|
|
|
|
kdump (#183017)
|
|
|
|
* Thu Jun 01 2006 - tiwai@suse.de
|
|
|
|
- update README.SUSE for more precise description about crash
|
|
|
|
and debug kernel.
|
|
|
|
* Tue May 30 2006 - tiwai@suse.de
|
|
|
|
- ppc64 kdump ELF header fix for power 4 box (#175128).
|
|
|
|
* Mon May 22 2006 - tiwai@suse.de
|
|
|
|
- added the missing man page for kexec (#175084).
|
|
|
|
- add sleep after reboot in kdump init script for avoiding
|
|
|
|
confliction with script single (#171332)
|
|
|
|
* Fri May 19 2006 - olh@suse.de
|
|
|
|
- unconditionally add sysrq=1 for kdump boots, nothing to lose
|
|
|
|
* Fri May 19 2006 - olh@suse.de
|
|
|
|
- remove crashkernel= cmdline also if only the size is given
|
|
|
|
handle m as well as M because memparse() handles both
|
|
|
|
* Tue May 02 2006 - tiwai@suse.de
|
|
|
|
- update/improve README.SUSE
|
|
|
|
- fix the default value in sysconfig.kdump
|
|
|
|
- add elevator=deadline to the boot parameter of kdump kernel
|
|
|
|
to save memory footprint (#170591)
|
|
|
|
* Fri Apr 28 2006 - olh@suse.de
|
|
|
|
- use df -P to print all data for a mount point in a single line
|
|
|
|
long device node names will cause 2 lines in df output
|
|
|
|
* Wed Apr 26 2006 - olh@suse.de
|
|
|
|
- linux,platform properties were removed from kernel 2.6.17
|
|
|
|
assume non-LPAR if some properties do no exist in the device-tree
|
|
|
|
(164993 - LTC23056)
|
|
|
|
* Wed Apr 26 2006 - olh@suse.de
|
|
|
|
- set /proc/sys/kernel/panic_on_oops to actually trigger a dump
|
|
|
|
* Wed Mar 08 2006 - olh@suse.de
|
|
|
|
- add --args-linux only on intel
|
|
|
|
copy vmcore with --sparse, maybe it saves a few bytes.
|
|
|
|
* Wed Feb 22 2006 - tiwai@suse.de
|
|
|
|
- updated to kdump7 patch.
|
|
|
|
* Wed Feb 15 2006 - tiwai@suse.de
|
|
|
|
- fixed gdb-kdump script (#151001)
|
|
|
|
* Mon Feb 13 2006 - tiwai@suse.de
|
|
|
|
- fix for ppc64 (#149576)
|
|
|
|
* Sun Feb 12 2006 - tiwai@suse.de
|
|
|
|
- added the system check before dumping
|
|
|
|
- added README.SUSE
|
|
|
|
- added gdb-kdump helper script
|
|
|
|
* Thu Feb 09 2006 - tiwai@suse.de
|
|
|
|
- fixed Default-Start in kdump init script.
|
|
|
|
- fixed RequiredStart in sysconfig/kdump.
|
|
|
|
* Wed Feb 08 2006 - tiwai@suse.de
|
|
|
|
- changed the default values of KDUMP_IMMEDIATE_REBOOT and
|
|
|
|
KDUMP_RUNLEVEL (#149140).
|
|
|
|
* Tue Feb 07 2006 - tiwai@suse.de
|
|
|
|
- added missing preun and postun sections.
|
|
|
|
* Mon Feb 06 2006 - tiwai@suse.de
|
|
|
|
- fixed the messages from kdump to use suse rc macros
|
|
|
|
- added $KDUMP_RUNLEVEL to /etc/sysconfig/kdump for specifying
|
|
|
|
the runlevel to boot kdump kernel.
|
|
|
|
- added /sbin/rckdump
|
|
|
|
- fixed a typo in kdump init script
|
|
|
|
* Fri Feb 03 2006 - tiwai@suse.de
|
|
|
|
- sync with mainstream dump6 patch:
|
|
|
|
most of ppc64 patches were merged there.
|
|
|
|
new fixes included: vmcore copy fix for x86_64 and ext_mem_k
|
|
|
|
calculation fix for i386
|
|
|
|
- added KEXEC_TRANSFER sysconfig variable for user-defined
|
|
|
|
dump action.
|
|
|
|
* Fri Jan 27 2006 - tiwai@suse.de
|
|
|
|
- added kdump init script and sysconfig.
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Mon Jan 23 2006 - olh@suse.de
|
|
|
|
- update ppc64 kdump support
|
|
|
|
* Thu Jan 05 2006 - tiwai@suse.de
|
|
|
|
- more fix for ppc64 kdump
|
|
|
|
- fix malloc size
|
|
|
|
* Thu Dec 15 2005 - tiwai@suse.de
|
|
|
|
- use the latest kdump patch.
|
|
|
|
* Mon Dec 12 2005 - tiwai@suse.de
|
|
|
|
- initial version: 1.101
|