SHA256
1
0
forked from pool/kdump

Accepting request 222333 from home:juwolf:branches:Kernel:kdump

In rc.kdump.functions, function load_kdump(), the argument order for kdumptool in verbose/debug-mode is wrong. $(kdumptool find_kernel -D) leads to "invalid option", $(kdumptool -D find_kernel) works.

OBS-URL: https://build.opensuse.org/request/show/222333
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=56
This commit is contained in:
Petr Tesařík 2014-02-14 16:11:37 +00:00 committed by Git OBS Bridge
parent 2628567fc9
commit 01715dffbb
3 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 14 12:15:14 UTC 2014 - juwolf@suse.com
- Added patch kdumptool_find_kernel.patch: kdumptool argument order was
wrong in debug mode
-------------------------------------------------------------------
Fri Jan 24 02:26:20 UTC 2014 - mpost@suse.com

View File

@ -47,6 +47,7 @@ PreReq: %insserv_prereq %fillup_prereq mkinitrd
Source: %{name}-%{version}.tar.bz2
Source2: %{name}-%{version}-rpmlintrc
Source3: kdump.service
Patch1: kdumptool_find_kernel.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
Provides: kdump-helpers = %{version}
@ -84,6 +85,7 @@ Authors:
%prep
%setup
%patch1 -p0
%build
export CFLAGS="%optflags"
export CXXFLAGS="%optflags"

View File

@ -0,0 +1,11 @@
--- init/rc.kdump.functions.old 2014-01-13 07:35:41.000000000 +0100
+++ init/rc.kdump.functions 2014-02-14 12:46:28.375308000 +0100
@@ -261,7 +261,7 @@
find_kernel_args="-D"
fi
- local output=$(kdumptool find_kernel $find_kernel_args)
+ local output=$(kdumptool $find_kernel_args find_kernel)
if [ $? -ne 0 ] ; then
rc_status -s
rc_failed 6