Blame SOURCES/0074-a-a-g-machine-id-suppress-its-failures-in-abrt_event.patch

baab13
From 4bfbbd5840a21257cf319936b3c59b7aaa1519ad Mon Sep 17 00:00:00 2001
baab13
From: Jakub Filak <jfilak@redhat.com>
baab13
Date: Fri, 24 Oct 2014 15:50:02 +0200
baab13
Subject: [ABRT PATCH 74/75] a-a-g-machine-id: suppress its failures in
baab13
 abrt_event.conf
baab13
baab13
If an event script exits with a non-zero code, abrtd deletes entire dump
baab13
directory.
baab13
baab13
Failures of a-a-g-machine-id must not lead to the deletion of a dump
baab13
directory.
baab13
baab13
It is also expected that dmidecode-less systems will print an error
baab13
message related to the fact that dmidecode doesn't work, hence
baab13
forwarding of STDOUT and STDERR to 'event_log' file.
baab13
baab13
Related to rhbz#1139552
baab13
baab13
Signed-off-by: Jakub Filak <jfilak@redhat.com>
baab13
---
baab13
 src/daemon/abrt_event.conf | 2 +-
baab13
 1 file changed, 1 insertion(+), 1 deletion(-)
baab13
baab13
diff --git a/src/daemon/abrt_event.conf b/src/daemon/abrt_event.conf
baab13
index deda7c7..54e1b3f 100644
baab13
--- a/src/daemon/abrt_event.conf
baab13
+++ b/src/daemon/abrt_event.conf
baab13
@@ -94,7 +94,7 @@ EVENT=post-create
baab13
 
baab13
 # Example: if you want to include *machineid* in dump directories:
baab13
 EVENT=post-create
baab13
-    /usr/libexec/abrt-action-generate-machine-id -o $DUMP_DIR/machineid
baab13
+    /usr/libexec/abrt-action-generate-machine-id -o $DUMP_DIR/machineid >>event_log 2>&1 || :
baab13
 
baab13
 # Example: if you want to upload data immediately at the moment of a crash:
baab13
 #EVENT=post-create
baab13
-- 
baab13
1.8.3.1
baab13