Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
kdump.2364
kdump-fadump-message-on-load.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdump-fadump-message-on-load.patch of Package kdump.2364
From: Petr Tesarik <ptesarik@suse.com> Date: Thu Oct 8 11:56:42 2015 +0200 Subject: FADUMP: Improve init script diagnostics References: bsc#944699 Patch-mainline: v0.8.16 Git-commit: 446f8f7aaecccd4f63365f72c7171cf4de00fca0 Include fadump in the output of load.sh, so admins can be sure that fadump was used. Signed-off-by: Petr Tesarik <ptesarik@suse.com> --- init/load.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) --- a/init/load.sh +++ b/init/load.sh @@ -236,13 +236,29 @@ function load_kdump_fadump() return 5 fi + local msg + # The kernel fails with EINVAL if registered already # (see bnc#814780) if [ $(cat "$FADUMP_REGISTERED") != "1" ] ; then - echo 1 > "$FADUMP_REGISTERED" + local output=$( (echo 1 > "$FADUMP_REGISTERED") 2>&1) + local result=$? + + if [ $result -eq 0 ] ; then + msg="Registered fadump" + else + msg="FAILED to register fadump: $output" + fi + else + msg="fadump is already registered" + fi + + echo "$msg" + if [ $((${KDUMP_VERBOSE:-0} & 1)) -gt 0 ] ; then + logger -i -t kdump "$msg" fi - return 0 + return $result } #
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