forked from pool/kdump
This commit is contained in:
parent
0af2a8676e
commit
5cb448a5dd
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:48ad22eb903f4924924966cad4e29fdf75c48b7432f02be7e8b3ee85bfbb6ee9
|
||||
size 3296265
|
3
kdump-0.6.4.tar.bz2
Normal file
3
kdump-0.6.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:274ac709cc145083f56ea119a04abaeaf6d59061aa304010f4f7cd6237701cc6
|
||||
size 3309515
|
@ -1,61 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User Bernhard Walle <bwalle@suse.de>
|
||||
# Date 1223916744 -7200
|
||||
# Node ID 2860e7a5d481633aca345b07db28d95fdb04d649
|
||||
# Parent f4cf2ef3cc3e6414d7d9386de0ebf7d633cbfed5
|
||||
Add documentation for "Extended crashkernel commandline"
|
||||
|
||||
As stated in https://bugzilla.novell.com/show_bug.cgi?id=430276,
|
||||
document the extended crashkernel commandline syntax in
|
||||
kdump(7).
|
||||
|
||||
diff --git a/doc/man/kdump.7.txt.in b/doc/man/kdump.7.txt.in
|
||||
--- a/doc/man/kdump.7.txt.in
|
||||
+++ b/doc/man/kdump.7.txt.in
|
||||
@@ -143,8 +143,7 @@
|
||||
|
||||
[NOTE]
|
||||
There's also a more advanced syntax that makes the amount of memory dependent on
|
||||
-system RAM. Read _Documentation/kernel-parameters.txt_ and
|
||||
-_Documentation/kdump/kdump.txt_ of the kernel source for more information.
|
||||
+system RAM. See <<crashkernel_exteded>>.
|
||||
|
||||
Enable kdump service
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -358,8 +357,36 @@
|
||||
If the problem is the *makedumpfile*(8) filtering tool, then set
|
||||
_MAKEDUMPFILE_OPTIONS_ to _-D_ to get debugging output of makedumpfile.
|
||||
|
||||
+Advanced Configuration
|
||||
+----------------------
|
||||
|
||||
+[[crashkernel_exteded]]
|
||||
+Extended crashkernel commandline
|
||||
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
+While the "crashkernel=size[@offset]" syntax is sufficient for most
|
||||
+configurations, sometimes it's handy to have the reserved memory dependent
|
||||
+on the value of System RAM -- that's mostly for distributors that pre-setup
|
||||
+the kernel command line to avoid a unbootable system after some memory has
|
||||
+been removed from the machine.
|
||||
+
|
||||
+The syntax is:
|
||||
+
|
||||
+ crashkernel=<range1>:<size1>[,<range2>:<size2>,...][@offset]
|
||||
+ range=start-[end]
|
||||
+
|
||||
+while _start_ is inclusive and _end_ is exclusive.
|
||||
+
|
||||
+For example:
|
||||
+
|
||||
+ crashkernel=512M-2G:64M,2G-:128M
|
||||
+
|
||||
+This would mean:
|
||||
+
|
||||
+. If the RAM is smaller than 512M, then don't reserve anything
|
||||
+ (this is the "rescue" case).
|
||||
+. If the RAM size is between 512M and 2G (exclusive), then reserve 64M.
|
||||
+. If the RAM size is larger than 2G, then reserve 128M.
|
||||
|
||||
Bugs
|
||||
----
|
@ -1,83 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User Bernhard Walle <bwalle@suse.de>
|
||||
# Date 1225046677 -3600
|
||||
# Node ID 56814cf5d03dff1d6233de996e79e1dd54cf5144
|
||||
# Parent ab17d673947837b991853adf412862a67e8862b6
|
||||
boot.kdump: Use the full kernel release for initrd name
|
||||
|
||||
Use the full kernel release (obtained with /sbin/get_kernel_version) to build
|
||||
the initrd name also when symlinks are used.
|
||||
|
||||
diff -r ab17d6739478 -r 56814cf5d03d ChangeLog
|
||||
--- a/ChangeLog Sun Oct 26 17:06:56 2008 +0100
|
||||
+++ b/ChangeLog Sun Oct 26 19:44:37 2008 +0100
|
||||
@@ -1,3 +1,9 @@
|
||||
+2008-10-26 Bernhard Walle <bwalle@suse.de>
|
||||
+
|
||||
+ * boot.kdump: Use the full kernel release (obtained with
|
||||
+ /sbin/get_kernel_version) to build the initrd name also when symlinks
|
||||
+ are used.
|
||||
+
|
||||
2008-10-22 Bernhard Walle <bwalle@suse.de>
|
||||
|
||||
* actually check <version>-kdump before <version>-<flavour> when
|
||||
diff -r ab17d6739478 -r 56814cf5d03d NEWS
|
||||
--- a/NEWS Sun Oct 26 17:06:56 2008 +0100
|
||||
+++ b/NEWS Sun Oct 26 19:44:37 2008 +0100
|
||||
@@ -3,6 +3,9 @@
|
||||
* change default location for KDUMP_SAVEDIR to "/var/crash"
|
||||
* actually check <version>-kdump before <version>-<flavour> when looking for
|
||||
a suitable kdump kernel
|
||||
+ * boot.kdump: Use the full kernel release (obtained with
|
||||
+ /sbin/get_kernel_version) to build the initrd name also when symlinks are
|
||||
+ used.
|
||||
|
||||
0.6.3
|
||||
-----
|
||||
diff -r ab17d6739478 -r 56814cf5d03d init/boot.kdump
|
||||
--- a/init/boot.kdump Sun Oct 26 17:06:56 2008 +0100
|
||||
+++ b/init/boot.kdump Sun Oct 26 19:44:37 2008 +0100
|
||||
@@ -158,18 +158,31 @@
|
||||
}
|
||||
|
||||
#
|
||||
-# Returns the initrd for the kernel. If the kernel already contains
|
||||
+# Prints the initrd for the kernel. If the kernel already contains
|
||||
# "kdump", then return "/boot/initrd-<kernelver>", else return
|
||||
# "/boot/initrd-<kernelver>-kdump".
|
||||
+#
|
||||
+# @param kdump_kernel: Full path to the kernel
|
||||
+# @returncode: 0 on success, 1 on failure
|
||||
function find_initrd ()
|
||||
{
|
||||
- local kdump_kver=$1
|
||||
+ local kdump_kernel=$1
|
||||
+
|
||||
+ # canonicalize the kernel version
|
||||
+ local kdump_kver=$(/sbin/get_kernel_version "$kdump_kernel")
|
||||
+ if [ -z "$kdump_kver" ] ; then
|
||||
+ echo >&2 "Getting version for $kdump_kernel failed."
|
||||
+ echo "${BOOTDIR}/initrd-kdump"
|
||||
+ return 1
|
||||
+ fi
|
||||
|
||||
if [[ "$kdump_kver" == *kdump* ]] ; then
|
||||
- echo "${BOOTDIR}/initrd${kdump_kver}"
|
||||
+ echo "${BOOTDIR}/initrd${kdump_kver:+-}${kdump_kver}"
|
||||
else
|
||||
echo "${BOOTDIR}/initrd${kdump_kver:+-}${kdump_kver}-kdump"
|
||||
fi
|
||||
+
|
||||
+ return 0
|
||||
}
|
||||
|
||||
#
|
||||
@@ -240,7 +253,7 @@
|
||||
rc_exit
|
||||
fi
|
||||
|
||||
- kdump_initrd=$(find_initrd "$kdump_kver")
|
||||
+ kdump_initrd=$(find_initrd "$kdump_kernel")
|
||||
|
||||
# rebuilding the kdump initramfs if necessary
|
||||
mkdumprd -K "$kdump_kernel" -I "$kdump_initrd" -q
|
@ -1,31 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User Bernhard Walle <bwalle@suse.de>
|
||||
# Date 1224075838 -7200
|
||||
# Node ID 8580f201f2f759eb78c646a6b98727b4508101d3
|
||||
# Parent 2860e7a5d481633aca345b07db28d95fdb04d649
|
||||
Reflect 'boot.kdump' in kdump(7)
|
||||
|
||||
The init script has been renamed to 'boot.kdump' to load the kdump kernel
|
||||
earlier. Reflect that in documentation.
|
||||
|
||||
diff --git a/doc/man/kdump.7.txt.in b/doc/man/kdump.7.txt.in
|
||||
--- a/doc/man/kdump.7.txt.in
|
||||
+++ b/doc/man/kdump.7.txt.in
|
||||
@@ -151,7 +151,7 @@
|
||||
the YaST runlevel editor or simply
|
||||
|
||||
--------------------------
|
||||
-# chkconfig kdump on
|
||||
+# chkconfig boot.kdump on
|
||||
--------------------------
|
||||
|
||||
on a shell. You can also execute it manually with +rckdump start+.
|
||||
@@ -171,7 +171,7 @@
|
||||
|
||||
Load the kdump kernel
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
-As mentioned above, the init script _/etc/init.d/kdump_ takes the part of
|
||||
+As mentioned above, the init script _/etc/init.d/boot.kdump_ takes the part of
|
||||
loading the kdump kernel. As kdump kernel, the normal system kernel is used, no
|
||||
special kernel image is required.
|
||||
|
@ -1,43 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User Bernhard Walle <bwalle@suse.de>
|
||||
# Date 1224709251 -7200
|
||||
# Node ID 8712f642965d13539148e385aefb805e3464b62d
|
||||
# Parent f4cf2ef3cc3e6414d7d9386de0ebf7d633cbfed5
|
||||
Actually check <version>-kdump before <version>-<flavour> when looking for a suitable kdump kernel
|
||||
|
||||
diff -r f4cf2ef3cc3e -r 8712f642965d ChangeLog
|
||||
--- a/ChangeLog Mon Aug 18 16:39:12 2008 +0200
|
||||
+++ b/ChangeLog Wed Oct 22 23:00:51 2008 +0200
|
||||
@@ -1,3 +1,8 @@
|
||||
+2008-10-22 Bernhard Walle <bwalle@suse.de>
|
||||
+
|
||||
+ * actually check <version>-kdump before <version>-<flavour> when
|
||||
+ looking for a suitable kdump kernel
|
||||
+
|
||||
2008-08-18 Bernhard Walle <bwalle@suse.de>
|
||||
|
||||
* change default location to "/var/crash"
|
||||
diff -r f4cf2ef3cc3e -r 8712f642965d NEWS
|
||||
--- a/NEWS Mon Aug 18 16:39:12 2008 +0200
|
||||
+++ b/NEWS Wed Oct 22 23:00:51 2008 +0200
|
||||
@@ -1,6 +1,8 @@
|
||||
0.6.4
|
||||
-----
|
||||
* change default location for KDUMP_SAVEDIR to "/var/crash"
|
||||
+ * actually check <version>-kdump before <version>-<flavour> when looking for
|
||||
+ a suitable kdump kernel
|
||||
|
||||
0.6.3
|
||||
-----
|
||||
diff -r f4cf2ef3cc3e -r 8712f642965d init/boot.kdump
|
||||
--- a/init/boot.kdump Mon Aug 18 16:39:12 2008 +0200
|
||||
+++ b/init/boot.kdump Wed Oct 22 23:00:51 2008 +0200
|
||||
@@ -129,7 +129,7 @@
|
||||
local kdump_kver=
|
||||
|
||||
# <version>-kdump first
|
||||
- kdump_kver=$(uname -r | sed -e's/-[^-]*$//g')
|
||||
+ kdump_kver=$(uname -r | sed -e's/-[^-]*$//g')-kdump
|
||||
if [ -n "$(check_boot_kernel $kdump_kver)" ] ; then
|
||||
echo "$kdump_kver"
|
||||
return
|
@ -1,41 +0,0 @@
|
||||
changeset: 314:f4cf2ef3cc3e
|
||||
tag: tip
|
||||
user: Bernhard Walle <bwalle@suse.de>
|
||||
date: Mon Aug 18 16:39:12 2008 +0200
|
||||
summary: Change default location of KDUMP_SAVEDIR to "/var/crash"
|
||||
|
||||
diff -r f2128430a054 -r f4cf2ef3cc3e ChangeLog
|
||||
--- a/ChangeLog Fri Aug 15 14:34:55 2008 +0200
|
||||
+++ b/ChangeLog Mon Aug 18 16:39:12 2008 +0200
|
||||
@@ -1,3 +1,7 @@
|
||||
+2008-08-18 Bernhard Walle <bwalle@suse.de>
|
||||
+
|
||||
+ * change default location to "/var/crash"
|
||||
+
|
||||
2008-08-15 Bernhard Walle <bwalle@suse.de>
|
||||
|
||||
* make the kdump init script a boot script ("boot.kdump")
|
||||
diff -r f2128430a054 -r f4cf2ef3cc3e NEWS
|
||||
--- a/NEWS Fri Aug 15 14:34:55 2008 +0200
|
||||
+++ b/NEWS Mon Aug 18 16:39:12 2008 +0200
|
||||
@@ -1,3 +1,7 @@
|
||||
+0.6.4
|
||||
+-----
|
||||
+ * change default location for KDUMP_SAVEDIR to "/var/crash"
|
||||
+
|
||||
0.6.3
|
||||
-----
|
||||
* make the kdump init script a boot script ("boot.kdump")
|
||||
diff -r f2128430a054 -r f4cf2ef3cc3e sysconfig.kdump
|
||||
--- a/sysconfig.kdump Fri Aug 15 14:34:55 2008 +0200
|
||||
+++ b/sysconfig.kdump Mon Aug 18 16:39:12 2008 +0200
|
||||
@@ -91,7 +91,7 @@
|
||||
# See also: kdump(5) which contains an exact specification for the URL format.
|
||||
# Consider using the "yast2 kdump" module if you are unsure.
|
||||
#
|
||||
-KDUMP_SAVEDIR="file:///var/log/dump"
|
||||
+KDUMP_SAVEDIR="file:///var/crash"
|
||||
|
||||
## Type: integer
|
||||
## Default: 5
|
||||
|
@ -1,3 +1,44 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 02 15:05:13 CET 2008 - bwalle@suse.de
|
||||
|
||||
- Update to 0.6.4
|
||||
o change default location for KDUMP_SAVEDIR to "/var/crash"
|
||||
o actually check <version>-kdump before <version>-<flavour> when
|
||||
looking for a suitable kdump kernel
|
||||
o boot.kdump: Use the full kernel release (obtained with
|
||||
/sbin/get_kernel_version) to build the initrd name also when
|
||||
symlinks are used (bnc#438218)
|
||||
o Assume a default terminal size of 80x25 (for printing the
|
||||
horizontal line)
|
||||
o Check the exit status of kdumptool
|
||||
o Implement support for resolving symbolic links inside a root
|
||||
directory (--root=...) when saving the dump. (bnc#431492)
|
||||
o Don't print a (red) info message that email failed if both
|
||||
KDUMP_SMTP_SERVER and KDUMP_NOTIFICATION_TO are empty.
|
||||
o If KDUMP_SAVEDIR points to a local file, resolve symlinks when
|
||||
creating the initrd because in theory the file system that
|
||||
contains parts of the symlinks is not mounted in initrd.
|
||||
o Fix KDUMP_NETCONFIG=auto by calling mkinitrd with right
|
||||
parameters.
|
||||
o Create core dumps in the initrd when kdumptool crashes.
|
||||
o Fix std::logic_error in Email::send() that caused kdumptool to
|
||||
terminate unexpectedly.
|
||||
o Set the hostname of the SMTP session based on the --fqdn
|
||||
parameter.
|
||||
o Don't report a failure in the email when there is no one.
|
||||
- Drop following patches (folded in 0.6.4):
|
||||
o kdump-2860e7a5d481633aca345b07db28d95fdb04d649
|
||||
Add documentation for "Extended crashkernel commandline"
|
||||
o kdump-56814cf5d03dff1d6233de996e79e1dd54cf5144
|
||||
boot.kdump: Use the full kernel release for initrd name
|
||||
o kdump-8580f201f2f759eb78c646a6b98727b4508101d3
|
||||
Reflect 'boot.kdump' in kdump(7)
|
||||
o kdump-8712f642965d13539148e385aefb805e3464b62d
|
||||
Actually check <version>-kdump before <version>-<flavour> when
|
||||
looking for a suitable kdump kernel
|
||||
o kdump-f4cf2ef3cc3e6414d7d9386de0ebf7d633cbfed5
|
||||
Change default location of KDUMP_SAVEDIR to "/var/crash"
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 28 13:22:28 CET 2008 - schwab@suse.de
|
||||
|
||||
|
54
kdump.spec
54
kdump.spec
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package kdump (Version 0.6.3)
|
||||
# spec file for package kdump (Version 0.6.4)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -21,8 +21,8 @@ Url: http://freehg.org/u/bwalle/kdump/
|
||||
|
||||
Name: kdump
|
||||
License: GPL v2 or later
|
||||
Version: 0.6.3
|
||||
Release: 33
|
||||
Version: 0.6.4
|
||||
Release: 1
|
||||
Requires: curl openssh makedumpfile
|
||||
Summary: Script for kdump
|
||||
Group: System/Kernel
|
||||
@ -35,11 +35,6 @@ BuildRequires: libssh2-devel
|
||||
PreReq: %insserv_prereq %fillup_prereq mkinitrd
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source2: %{name}-%{version}-rpmlintrc
|
||||
Patch0: %{name}-f4cf2ef3cc3e6414d7d9386de0ebf7d633cbfed5
|
||||
Patch1: %{name}-2860e7a5d481633aca345b07db28d95fdb04d649
|
||||
Patch2: %{name}-8580f201f2f759eb78c646a6b98727b4508101d3
|
||||
Patch3: %{name}-8712f642965d13539148e385aefb805e3464b62d
|
||||
Patch4: %{name}-56814cf5d03dff1d6233de996e79e1dd54cf5144
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
|
||||
Provides: kdump-helpers = 0.2.4
|
||||
@ -61,11 +56,6 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%optflags"
|
||||
@ -134,6 +124,44 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%config %{_sysconfdir}/udev/rules.d/70-kdump.rules
|
||||
|
||||
%changelog
|
||||
* Sun Nov 02 2008 bwalle@suse.de
|
||||
- Update to 0.6.4
|
||||
o change default location for KDUMP_SAVEDIR to "/var/crash"
|
||||
o actually check <version>-kdump before <version>-<flavour> when
|
||||
looking for a suitable kdump kernel
|
||||
o boot.kdump: Use the full kernel release (obtained with
|
||||
/sbin/get_kernel_version) to build the initrd name also when
|
||||
symlinks are used (bnc#438218)
|
||||
o Assume a default terminal size of 80x25 (for printing the
|
||||
horizontal line)
|
||||
o Check the exit status of kdumptool
|
||||
o Implement support for resolving symbolic links inside a root
|
||||
directory (--root=...) when saving the dump. (bnc#431492)
|
||||
o Don't print a (red) info message that email failed if both
|
||||
KDUMP_SMTP_SERVER and KDUMP_NOTIFICATION_TO are empty.
|
||||
o If KDUMP_SAVEDIR points to a local file, resolve symlinks when
|
||||
creating the initrd because in theory the file system that
|
||||
contains parts of the symlinks is not mounted in initrd.
|
||||
o Fix KDUMP_NETCONFIG=auto by calling mkinitrd with right
|
||||
parameters.
|
||||
o Create core dumps in the initrd when kdumptool crashes.
|
||||
o Fix std::logic_error in Email::send() that caused kdumptool to
|
||||
terminate unexpectedly.
|
||||
o Set the hostname of the SMTP session based on the --fqdn
|
||||
parameter.
|
||||
o Don't report a failure in the email when there is no one.
|
||||
- Drop following patches (folded in 0.6.4):
|
||||
o kdump-2860e7a5d481633aca345b07db28d95fdb04d649
|
||||
Add documentation for "Extended crashkernel commandline"
|
||||
o kdump-56814cf5d03dff1d6233de996e79e1dd54cf5144
|
||||
boot.kdump: Use the full kernel release for initrd name
|
||||
o kdump-8580f201f2f759eb78c646a6b98727b4508101d3
|
||||
Reflect 'boot.kdump' in kdump(7)
|
||||
o kdump-8712f642965d13539148e385aefb805e3464b62d
|
||||
Actually check <version>-kdump before <version>-<flavour> when
|
||||
looking for a suitable kdump kernel
|
||||
o kdump-f4cf2ef3cc3e6414d7d9386de0ebf7d633cbfed5
|
||||
Change default location of KDUMP_SAVEDIR to "/var/crash"
|
||||
* Tue Oct 28 2008 schwab@suse.de
|
||||
- Fix %%post failure.
|
||||
* Sun Oct 26 2008 bwalle@suse.de
|
||||
|
Loading…
x
Reference in New Issue
Block a user