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

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