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

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