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

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