[firstboot][PATCH] ABRT now uses a different directory for problem data (#952633)

Vratislav Podzimek vpodzime at redhat.com
Fri Aug 23 11:37:59 UTC 2013


Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 progs/firstboot | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/progs/firstboot b/progs/firstboot
index 4f841b0..43175c5 100755
--- a/progs/firstboot
+++ b/progs/firstboot
@@ -41,6 +41,8 @@ import meh.dump
 import gettext
 _ = lambda x: gettext.ldgettext("firstboot", x)
 
+ABRT_DIR = "/var/tmp/abrt"
+
 def exception_handler(type, value, tb, obj):
     # write exception to a file
     fd, path = tempfile.mkstemp(prefix='/var/tmp/firstboot-', suffix='.trace')
@@ -76,7 +78,7 @@ def exception_handler(type, value, tb, obj):
 
     problem_data = report.createPythonUnhandledExceptionSignature(**params)
 
-    problem_data.create_dump_dir('/var/spool/abrt')
+    problem_data.create_dump_dir(ABRT_DIR)
 
     print _('Unhandled exception in firstboot occured.')
     print _('Bugreport directory was created and once you login, ABRT should\n'
-- 
1.7.11.7



More information about the anaconda-patches mailing list