Browse code

Copy resolv.conf from initram to chroot targe before run postinstall chroot.

Change-Id: Iae8a936edf1a05a1c2495efbf4be54d0c7b352b4
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1735
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George

xiaolin-vmware authored on 2016/11/23 03:19:33
Showing 1 changed files
... ...
@@ -290,6 +290,7 @@ class Installer(object):
290 290
     
291 291
     def finalize_system(self):
292 292
         #Setup the disk
293
+        shutil.copy("/etc/resolv.conf", self.photon_root + '/etc/.')
293 294
         process = subprocess.Popen([self.chroot_command, '-w', self.photon_root, self.finalize_command, '-w', self.photon_root], stdout=self.output)
294 295
         retval = process.wait()
295 296
         if self.iso_installer: