From 95b2cf1ec13c2dd93617250bb3e0c8fa6680307a Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Fri, 6 Nov 2009 19:03:58 +0000 Subject: [PATCH] Resolves: bz533370 --- kdump.init | 11 +++++++++++ kexec-tools.spec | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/kdump.init b/kdump.init index afd2939..3296b74 100644 --- a/kdump.init +++ b/kdump.init @@ -49,6 +49,17 @@ function save_core() else $LOGGER "failed to save a vmcore to $coredir" fi + + # pass the dmesg to Abrt tool if exists, in order + # to collect the kernel oops message. + # https://fedorahosted.org/abrt/ + if [ -x /usr/bin/dumpoops ]; then + makedumpfile --dump-dmesg $coredir/vmcore $coredir/dmesg >/dev/null 2>&1 + dumpoops -d $coredir/dmesg >/dev/null 2>&1 + if [$? == 0]; then + $LOGGER "kernel oops has been collected by abrt tool" + fi + fi } function check_config() diff --git a/kexec-tools.spec b/kexec-tools.spec index 2b94ae5..c19eca5 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -1,6 +1,6 @@ Name: kexec-tools Version: 2.0.0 -Release: 27%{?dist} +Release: 28%{?dist} License: GPLv2 Group: Applications/System Summary: The kexec/kdump userspace component. @@ -264,6 +264,9 @@ done %changelog +* Fri Nov 06 2009 Neil Horman - 2.0.0-28 +- Added abrt infrastructure to kdump init script (bz 533370) + * Tue Sep 15 2009 Neil Horman - 2.0.0-27 - Fixing permissions on dracut module files