[master 1/1] Include original kickstart in /root/original-ks.cfg (#1227939)

bcl installerbot-noreply at redhat.com
Tue Nov 10 19:43:55 UTC 2015


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

Having the original un-modified kickstart can sometimes be useful.

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

diff --git a/data/post-scripts/99-copy-logs.ks b/data/post-scripts/99-copy-logs.ks
index 638c42c..5640cce 100644
--- a/data/post-scripts/99-copy-logs.ks
+++ b/data/post-scripts/99-copy-logs.ks
@@ -9,4 +9,6 @@ cp /tmp/ks-script*.log $ANA_INSTALL_PATH/var/log/anaconda/
 journalctl -b > $ANA_INSTALL_PATH/var/log/anaconda/journal.log
 chmod 0600 $ANA_INSTALL_PATH/var/log/anaconda/*
 
+[ -e /run/install/ks.cfg ] && cp /run/install/ks.cfg $ANA_INSTALL_PATH/root/original-ks.cfg
+
 %end


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


More information about the anaconda-patches mailing list