Change-Id: Ifddc7f7d637d2a070b613b2d5886f4118634fe50
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3247
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
... | ... |
@@ -179,6 +179,8 @@ class Installer(object): |
179 | 179 |
if not self.install_config['iso_system']: |
180 | 180 |
# Execute post installation modules |
181 | 181 |
self.execute_modules(modules.commons.POST_INSTALL) |
182 |
+ if os.path.exists(modules.commons.KS_POST_INSTALL_LOG_FILE_NAME): |
|
183 |
+ shutil.copy(modules.commons.KS_POST_INSTALL_LOG_FILE_NAME, self.photon_root + '/var/log/') |
|
182 | 184 |
|
183 | 185 |
if self.iso_installer and os.path.isdir("/sys/firmware/efi"): |
184 | 186 |
self.install_config['boot'] = 'efi' |
... | ... |
@@ -9,6 +9,7 @@ LOG_LEVEL_DESC = ["emerg", "alert", "crit", "err", "warning", "notice", "info", |
9 | 9 |
LOG_FILE_NAME = "/var/log/installer.log" |
10 | 10 |
TDNF_LOG_FILE_NAME = "/var/log/tdnf.log" |
11 | 11 |
TDNF_CMDLINE_FILE_NAME = "/var/log/tdnf.cmdline" |
12 |
+KS_POST_INSTALL_LOG_FILE_NAME = "/var/log/installer-kickstart.log" |
|
12 | 13 |
SIGNATURE = "localhost echo" |
13 | 14 |
LOG_EMERG = 0 |
14 | 15 |
LOG_ALERT = 1 |
... | ... |
@@ -17,7 +17,7 @@ def execute(name, config, root): |
17 | 17 |
outfile.write("\n".join(script)) |
18 | 18 |
|
19 | 19 |
os.chmod(script_file, 0700); |
20 |
- with open("/var/log/installer-kickstart.log","w") as logfile: |
|
20 |
+ with open(commons.KS_POST_INSTALL_LOG_FILE_NAME,"w") as logfile: |
|
21 | 21 |
process = subprocess.Popen(["./mk-run-chroot.sh", '-w', root, "/etc/tmpfiles.d/postinstall.sh"], |
22 | 22 |
stdout=logfile,stderr=logfile) |
23 | 23 |
retval = process.wait() |