[lorax/master 2/4] livemedia-creator: Copy all the logs from /tmp/

Brian C. Lane bcl at redhat.com
Thu Jan 15 01:18:12 UTC 2015


It wasn't copying new logs from dnf, kickstart script logs or
tracebacks.
---
 src/sbin/livemedia-creator | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index a9b29d7..20ebbda 100755
--- a/src/sbin/livemedia-creator
+++ b/src/sbin/livemedia-creator
@@ -845,11 +845,9 @@ def novirt_install(opts, disk_img, disk_size, repo_url):
         log_anaconda = joinpaths(log_dir, "anaconda")
         if not os.path.isdir(log_anaconda):
             os.mkdir(log_anaconda)
-        for l in ["anaconda.log", "ifcfg.log", "program.log", "storage.log",
-                  "packaging.log", "yum.log"]:
-            if os.path.exists("/tmp/"+l):
-                shutil.copy2("/tmp/"+l, log_anaconda)
-                os.unlink("/tmp/"+l)
+        for l in glob.glob("/tmp/*log")+glob.glob("/tmp/anaconda-tb-*"):
+                shutil.copy2(l, log_anaconda)
+                os.unlink(l)
 
         if opts.make_iso or opts.make_fsimage:
             umount(ROOT_PATH)
-- 
1.9.3



More information about the anaconda-patches mailing list