Change-Id: Ie68d638f03f683e131438773f32185636f9b41a7
Reviewed-on: http://photon-jenkins.eng.vmware.com/685
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: suezzelur <anishs@vmware.com>
| ... | ... |
@@ -286,6 +286,10 @@ class Installer(object): |
| 286 | 286 |
if self.iso_installer: |
| 287 | 287 |
# just copy the initramfs /boot -> /photon_mnt/boot |
| 288 | 288 |
shutil.copy(os.path.join(initrd_dir, initrd_file_name), self.photon_root + '/boot/') |
| 289 |
+ |
|
| 290 |
+ modules.commons.dump(modules.commons.LOG_FILE_NAME) |
|
| 291 |
+ shutil.copy(modules.commons.LOG_FILE_NAME, self.photon_root + '/var/log/') |
|
| 292 |
+ |
|
| 289 | 293 |
# unmount the installer directory |
| 290 | 294 |
process = subprocess.Popen(['umount', os.path.join(self.photon_root, "installer")], stdout=self.output) |
| 291 | 295 |
retval = process.wait() |