[PATCH 2/3] Copy ks script logs into the install root as well

Jesse Keating jkeating at redhat.com
Wed Oct 3 22:37:10 UTC 2012


---
 data/post-scripts/95-copy-logs.ks | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/data/post-scripts/95-copy-logs.ks b/data/post-scripts/95-copy-logs.ks
index 7343d8a..1a60756 100644
--- a/data/post-scripts/95-copy-logs.ks
+++ b/data/post-scripts/95-copy-logs.ks
@@ -1,3 +1,4 @@
+# Note, this script log will not be copied to the installed system.
 %post --nochroot
 
 mkdir -p /mnt/sysimage/var/log/anaconda
@@ -9,6 +10,7 @@ mkdir -p /mnt/sysimage/var/log/anaconda
 [ -e /tmp/storage.log ] && cp /tmp/storage.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.storage.log
 [ -e /tmp/ifcfg.log ] && cp /tmp/ifcfg.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.ifcfg.log
 [ -e /tmp/yum.log ] && cp /tmp/yum.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.yum.log
+cp /tmp/ks-script*.log $ANA_INSTALL_PATH/var/log/anaconda/
 chmod 0600 /mnt/sysimage/var/log/anaconda/*
 
 %end
-- 
1.7.11.4



More information about the anaconda-patches mailing list