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:
parent
2628567fc9
commit
01715dffbb
@ -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
|
Fri Jan 24 02:26:20 UTC 2014 - mpost@suse.com
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ PreReq: %insserv_prereq %fillup_prereq mkinitrd
|
|||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source2: %{name}-%{version}-rpmlintrc
|
Source2: %{name}-%{version}-rpmlintrc
|
||||||
Source3: kdump.service
|
Source3: kdump.service
|
||||||
|
Patch1: kdumptool_find_kernel.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
|
# rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
|
||||||
Provides: kdump-helpers = %{version}
|
Provides: kdump-helpers = %{version}
|
||||||
@ -84,6 +85,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup
|
||||||
|
%patch1 -p0
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%optflags"
|
export CFLAGS="%optflags"
|
||||||
export CXXFLAGS="%optflags"
|
export CXXFLAGS="%optflags"
|
||||||
|
11
kdumptool_find_kernel.patch
Normal file
11
kdumptool_find_kernel.patch
Normal 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
|
Loading…
x
Reference in New Issue
Block a user