diff --git a/kdump-2860e7a5d481633aca345b07db28d95fdb04d649 b/kdump-2860e7a5d481633aca345b07db28d95fdb04d649 new file mode 100644 index 0000000..6b68269 --- /dev/null +++ b/kdump-2860e7a5d481633aca345b07db28d95fdb04d649 @@ -0,0 +1,61 @@ +# HG changeset patch +# User Bernhard Walle +# 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 <>. + + 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=:[,:,...][@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 + ---- diff --git a/kdump.changes b/kdump.changes index 1ec2257..f238cc5 100644 --- a/kdump.changes +++ b/kdump.changes @@ -1,7 +1,13 @@ +------------------------------------------------------------------- +Mon Oct 13 18:59:50 CEST 2008 - bwalle@suse.de + +- Add documentation for "Extended crashkernel commandline" + (bnc#430276). + ------------------------------------------------------------------- Wed Sep 3 15:51:52 CEST 2008 - crrodriguez@suse.de -- use RPM_OPT_FLAGS everywhere [FATE #300498] +- use RPM_OPT_FLAGS everywhere [FATE #300498] ------------------------------------------------------------------- Sat Aug 23 19:18:09 CEST 2008 - bwalle@suse.de diff --git a/kdump.spec b/kdump.spec index f5a1866..a5ef869 100644 --- a/kdump.spec +++ b/kdump.spec @@ -22,7 +22,7 @@ Url: http://freehg.org/u/bwalle/kdump/ Name: kdump License: GPL v2 or later Version: 0.6.3 -Release: 20 +Release: 28 Requires: curl openssh makedumpfile Summary: Script for kdump Group: System/Kernel @@ -35,6 +35,7 @@ BuildRequires: libssh2-devel PreReq: %insserv_prereq %fillup_prereq mkinitrd Source: %{name}-%{version}.tar.bz2 Patch0: %{name}-f4cf2ef3cc3e6414d7d9386de0ebf7d633cbfed5 +Patch1: %{name}-2860e7a5d481633aca345b07db28d95fdb04d649 BuildRoot: %{_tmppath}/%{name}-%{version}-build # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2) Provides: kdump-helpers = 0.2.4 @@ -57,6 +58,7 @@ Authors: %prep %setup %patch0 -p1 +%patch1 -p1 %build export CFLAGS="%optflags" @@ -64,7 +66,7 @@ export CXXFLAGS="%optflags" mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} .. -make VERBOSE=1 +make cd - %install @@ -116,6 +118,9 @@ rm /var/log/dump &>/dev/null || true %config %{_sysconfdir}/udev/rules.d/70-kdump.rules %changelog +* Mon Oct 13 2008 bwalle@suse.de +- Add documentation for "Extended crashkernel commandline" + (bnc#430276). * Wed Sep 03 2008 crrodriguez@suse.de - use RPM_OPT_FLAGS everywhere [FATE #300498] * Sat Aug 23 2008 bwalle@suse.de