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

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