Blame SOURCES/0225-vmcore-generate-reason-file-in-all-cases.patch

baab13
From ef62408248f975dab68f99e1be1eb9836374dc7c Mon Sep 17 00:00:00 2001
baab13
From: Jakub Filak <jfilak@redhat.com>
baab13
Date: Fri, 27 Mar 2015 10:51:52 +0100
baab13
Subject: [PATCH] vmcore: generate 'reason' file in all cases
baab13
baab13
If kdump generates the dmesg log file (vmcore-dmesg.log), the vmcore's
baab13
post-create event doesn't generate 'reason' file. It is caused by
baab13
inappropriate use of 'abrt-dump-oops' where the event uses that helper
baab13
to parse the log file to generate 'backtrace' file instead of using it
baab13
with the '-u' argument to update the dump directory and create all
baab13
necessary files.
baab13
baab13
Resolves: rhbz#1250337
baab13
baab13
Signed-off-by: Jakub Filak <jfilak@redhat.com>
baab13
---
baab13
 src/plugins/vmcore_event.conf | 2 +-
baab13
 1 file changed, 1 insertion(+), 1 deletion(-)
baab13
baab13
diff --git a/src/plugins/vmcore_event.conf b/src/plugins/vmcore_event.conf
baab13
index 34608d9..5957b3f 100644
baab13
--- a/src/plugins/vmcore_event.conf
baab13
+++ b/src/plugins/vmcore_event.conf
baab13
@@ -3,7 +3,7 @@ EVENT=post-create analyzer=vmcore
baab13
         # If kdump machinery already extracted dmesg...
baab13
         if test -f vmcore-dmesg.txt; then
baab13
             # ...use that
baab13
-            abrt-dump-oops -o vmcore-dmesg.txt >backtrace || exit $?
baab13
+            abrt-dump-oops -u $DUMP_DIR vmcore-dmesg.txt || exit $?
baab13
             #
baab13
             # Does "kernel" element exist?
baab13
             test -f kernel && exit 0
baab13
-- 
baab13
1.8.3.1
baab13