[master][PATCH] Grab journal only from the last boot

Vratislav Podzimek vpodzime at redhat.com
Tue Oct 15 07:44:08 UTC 2013


We are not interested in log messages from previous boots.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/exception.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index 5321799..e61cce0 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -259,7 +259,7 @@ def journalctl_callback():
     # logs)
     anaconda_log_line = re.compile(r"\[%d\]:" % os.getpid())
     ret = ""
-    for line in iutil.execReadlines("journalctl", []):
+    for line in iutil.execReadlines("journalctl", ["-b"]):
         if anaconda_log_line.search(line) is None:
             # not an anaconda's message
             ret += line + "\n"
-- 
1.7.11.7



More information about the anaconda-patches mailing list