This commit is contained in:
commit
5dc2589260
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
9
02-keyboard-blink.sh
Normal file
9
02-keyboard-blink.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#%programs: /sbin/kdump-led_blink
|
||||||
|
#
|
||||||
|
|
||||||
|
# blink
|
||||||
|
if [ -s /proc/vmcore ] ; then
|
||||||
|
/usr/sbin/kdump-led_blink
|
||||||
|
fi
|
||||||
|
|
3
kdump-0.3.0.tar.bz2
Normal file
3
kdump-0.3.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7c2dafd7d19621adbe2e296c585d3abbb95a573a3c79466135cb34257e0181a6
|
||||||
|
size 41384
|
66
kdump.changes
Normal file
66
kdump.changes
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 11 16:17:07 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- rename kdump-helpers to kdump
|
||||||
|
- added GDB helpers, init script and sysconfig file
|
||||||
|
(formerly all in the kexec-tools package)
|
||||||
|
- added README (formerly README.SUSE in the kexec-tools package)
|
||||||
|
- fix compile warning in src/read-debuglink.c
|
||||||
|
- log save message to syslog if $KDUMP_VERBOSE & 1 > 0 (#331118)
|
||||||
|
- improve algorithm for finding the kdump kernel
|
||||||
|
- updated version to 0.3.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 3 16:51:53 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- don't use locking for NFS (#307178)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 29 19:11:55 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- added Recommends: makedumpfile
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 13 16:45:12 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- run bootloader after modifying initrd
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 27 12:51:44 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- update to 0.2.4 (#302257)
|
||||||
|
o implement KDUMP_KEEP_OLD_DUMPS = -2 for deleting all dumps
|
||||||
|
(except the latest, which is saved afterwards
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 2 16:49:49 CEST 2007 - tiwai@suse.de
|
||||||
|
|
||||||
|
- changed from libelf to libelf0-devel in buildrequires.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 18 13:57:15 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- update to 0.2.3
|
||||||
|
o fixed read-debuglink
|
||||||
|
o changed NFS URL, no separation between share and directory
|
||||||
|
o added kdump-led_blink to blink LEDs (for broken VGA console)
|
||||||
|
o added mkinitrd script (for blink) and /sbin/mkinitrd to
|
||||||
|
%postin and %postun
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 11 15:26:09 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- update to 0.2.2
|
||||||
|
o add read-debuglink
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 10 23:12:53 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- update to 0.2.1
|
||||||
|
o add manpages for all programs
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 28 18:15:56 CEST 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- first version
|
||||||
|
|
168
kdump.spec
Normal file
168
kdump.spec
Normal file
@ -0,0 +1,168 @@
|
|||||||
|
#
|
||||||
|
# spec file for package kdump (Version 0.3.0)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
# 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: kdump
|
||||||
|
License: GPL v2 or later
|
||||||
|
BuildRequires: libelf0-devel zlib-devel
|
||||||
|
Version: 0.3.0
|
||||||
|
Release: 1
|
||||||
|
Requires: curl openssh
|
||||||
|
Recommends: makedumpfile
|
||||||
|
Summary: Script for kdump
|
||||||
|
Group: System/Kernel
|
||||||
|
Requires(post): mkinitrd
|
||||||
|
BuildRequires: mkinitrd
|
||||||
|
Requires: %insserv_prereq %fillup_prereq
|
||||||
|
Url: http://www.suse.de/~bwalle/kdump-helpers/
|
||||||
|
Source: %{name}-%{version}.tar.bz2
|
||||||
|
Source1: 02-keyboard-blink.sh
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
# rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
|
||||||
|
Provides: kdump-helpers = 0.2.4
|
||||||
|
Obsoletes: kdump-helpers <= 0.2.4
|
||||||
|
# update should detect the split-off from kexec-tools
|
||||||
|
Provides: kexec-tools:/etc/init.d/kdump
|
||||||
|
|
||||||
|
%description
|
||||||
|
kdump is a package that includes several scripts for kdump, including
|
||||||
|
the init script /etc/init.d/kdump and the configuration file for kdump.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Bernhard Walle <bwalle@suse.de>
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup
|
||||||
|
|
||||||
|
%build
|
||||||
|
make CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
|
||||||
|
%install
|
||||||
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/lib/mkinitrd/boot
|
||||||
|
cp %{SOURCE1} $RPM_BUILD_ROOT/lib/mkinitrd/boot
|
||||||
|
# symlink for init script
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
||||||
|
ln -s /etc/init.d/kdump $RPM_BUILD_ROOT/sbin/rckdump
|
||||||
|
##
|
||||||
|
# fix sysconfig.kdump for various architectures
|
||||||
|
##
|
||||||
|
%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 x86_64 i386 ia64
|
||||||
|
# empty KDUMP_KERNELVER since we have no special kdump kernel on that archs
|
||||||
|
sed -i -e 's@^\(KDUMP_KERNELVER=\).*$@\1""@' \
|
||||||
|
-e 's@^\(KDUMP_COMMANDLINE_APPEND="\)\(.*"[[:blank:]]*$\)@\1maxcpus=1 \2@' \
|
||||||
|
$RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.kdump
|
||||||
|
%endif
|
||||||
|
%ifarch ia64
|
||||||
|
# add --noio since kexec is broken without --noio on most machines
|
||||||
|
sed -i -e 's@^\(KEXEC_OPTIONS="\)\(.*"[[:blank:]]*$\)@\1--noio \2@' \
|
||||||
|
$RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.kdump
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post
|
||||||
|
if [ ! -e /.buildenv ] ; then
|
||||||
|
if [ -x /sbin/update-bootloader -a \
|
||||||
|
-x /sbin/mkinitrd ] ; then
|
||||||
|
/sbin/mkinitrd
|
||||||
|
/sbin/update-bootloader --refresh
|
||||||
|
fi
|
||||||
|
%{fillup_and_insserv -n kdump kdump}
|
||||||
|
fi
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ ! -e /.buildenv ] ; then
|
||||||
|
echo "Stopping kexec ..."
|
||||||
|
%stop_on_removal kdump
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ ! -e /.buildenv ] ; then
|
||||||
|
if [ -x /sbin/update-bootloader -a \
|
||||||
|
-x /sbin/mkinitrd ] ; then
|
||||||
|
/sbin/mkinitrd
|
||||||
|
/sbin/update-bootloader --refresh
|
||||||
|
fi
|
||||||
|
%restart_on_update kdump
|
||||||
|
%insserv_cleanup
|
||||||
|
fi
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc ChangeLog COPYING README
|
||||||
|
%{_bindir}/read-debuglink
|
||||||
|
%{_bindir}/gdb-kdump
|
||||||
|
%{_sbindir}/kdump-helper
|
||||||
|
%{_sbindir}/kdump-identify_kernel
|
||||||
|
%{_sbindir}/kdump-url_parser
|
||||||
|
%{_sbindir}/kdump-copy_kernel
|
||||||
|
%{_sbindir}/kdump-copy_progress
|
||||||
|
%{_sbindir}/kdump-save_dump
|
||||||
|
%{_sbindir}/kdump-cleanup_dumps
|
||||||
|
%{_sbindir}/kdump-cat_progress
|
||||||
|
%{_sbindir}/kdump-led_blink
|
||||||
|
/sbin/rckdump
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
%{_mandir}/man8/*
|
||||||
|
%{_datadir}/gdbinit.kdump
|
||||||
|
%dir %{_datadir}/kdump
|
||||||
|
%{_datadir}/kdump/kdump-shared_functions
|
||||||
|
/lib/mkinitrd/boot/02-keyboard-blink.sh
|
||||||
|
/etc/init.d/kdump
|
||||||
|
/var/adm/fillup-templates/sysconfig.kdump
|
||||||
|
%changelog
|
||||||
|
* Thu Oct 11 2007 - bwalle@suse.de
|
||||||
|
- rename kdump-helpers to kdump
|
||||||
|
- added GDB helpers, init script and sysconfig file
|
||||||
|
(formerly all in the kexec-tools package)
|
||||||
|
- added README (formerly README.SUSE in the kexec-tools package)
|
||||||
|
- fix compile warning in src/read-debuglink.c
|
||||||
|
- log save message to syslog if $KDUMP_VERBOSE & 1 > 0 (#331118)
|
||||||
|
- improve algorithm for finding the kdump kernel
|
||||||
|
- updated version to 0.3.0
|
||||||
|
* Mon Sep 03 2007 - bwalle@suse.de
|
||||||
|
- don't use locking for NFS (#307178)
|
||||||
|
* Wed Aug 29 2007 - bwalle@suse.de
|
||||||
|
- added Recommends: makedumpfile
|
||||||
|
* Mon Aug 13 2007 - bwalle@suse.de
|
||||||
|
- run bootloader after modifying initrd
|
||||||
|
* Fri Jul 27 2007 - bwalle@suse.de
|
||||||
|
- update to 0.2.4 (#302257)
|
||||||
|
o implement KDUMP_KEEP_OLD_DUMPS = -2 for deleting all dumps
|
||||||
|
(except the latest, which is saved afterwards
|
||||||
|
* Mon Jul 02 2007 - tiwai@suse.de
|
||||||
|
- changed from libelf to libelf0-devel in buildrequires.
|
||||||
|
* Mon Jun 18 2007 - bwalle@suse.de
|
||||||
|
- update to 0.2.3
|
||||||
|
o fixed read-debuglink
|
||||||
|
o changed NFS URL, no separation between share and directory
|
||||||
|
o added kdump-led_blink to blink LEDs (for broken VGA console)
|
||||||
|
o added mkinitrd script (for blink) and /sbin/mkinitrd to
|
||||||
|
%%postin and %%postun
|
||||||
|
* Mon Jun 11 2007 - bwalle@suse.de
|
||||||
|
- update to 0.2.2
|
||||||
|
o add read-debuglink
|
||||||
|
* Sun Jun 10 2007 - bwalle@suse.de
|
||||||
|
- update to 0.2.1
|
||||||
|
o add manpages for all programs
|
||||||
|
* Mon May 28 2007 - bwalle@suse.de
|
||||||
|
- first version
|
Loading…
Reference in New Issue
Block a user