Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
kdump.5722
kdump-do-not-ignore-kexec-exit-code.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdump-do-not-ignore-kexec-exit-code.patch of Package kdump.5722
From: Petr Tesarik <ptesarik@suse.com> Date: Wed Jun 22 12:57:28 2016 +0200 Subject: Use the exit code of kexec, not that of "local" References: bsc#984799 Patch-mainline: v0.8.16 Git-commit: 9397b6ef0531c534508cbf49499ebcbd59327d13 The "local" keyword cannot be combined with the assignment here. The return status is in fact the return status of "local", which is always 0. OTOH, the "eval" does preserve the exit code. Signed-off-by: Petr Tesarik <ptesarik@suse.com> --- init/load.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/init/load.sh +++ b/init/load.sh @@ -164,7 +164,8 @@ function load_kdump_kexec() echo "Loading kdump kernel: $KEXEC_CALL" fi - local output=$(eval "$KEXEC_CALL" 2>&1) + local output + output=$(eval "$KEXEC_CALL" 2>&1) if [ $? -eq 0 ] ; then result=0 else
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor