[master 1/1] Include original kickstart in logs (#1227939)

bcl installerbot-noreply at redhat.com
Tue Nov 10 18:30:34 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

Having the original un-modified kickstart can sometimes be useful,
include it in /var/log/anaconda/ks.cfg

Resolves: rhbz#1227939
---
 data/post-scripts/99-copy-logs.ks | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/post-scripts/99-copy-logs.ks b/data/post-scripts/99-copy-logs.ks
index 638c42c..d1ec6a7 100644
--- a/data/post-scripts/99-copy-logs.ks
+++ b/data/post-scripts/99-copy-logs.ks
@@ -7,6 +7,7 @@ for log in anaconda.log syslog X.log program.log packaging.log storage.log ifcfg
 done
 cp /tmp/ks-script*.log $ANA_INSTALL_PATH/var/log/anaconda/
 journalctl -b > $ANA_INSTALL_PATH/var/log/anaconda/journal.log
+[ -e /run/install/ks.cfg ] && cp /run/install/ks.cfg $ANA_INSTALL_PATH/var/log/anaconda/
 chmod 0600 $ANA_INSTALL_PATH/var/log/anaconda/*
 
 %end


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/2dc4e3d0fa0b537fd3ed5dad09c54ad948b3aa71


More information about the anaconda-patches mailing list