diff --git a/chroot-tasks.py b/chroot-tasks.py index b214556..6d0288e 100755 --- a/chroot-tasks.py +++ b/chroot-tasks.py @@ -111,6 +111,13 @@ def boottoolsPythonModules(): def boottoolsRemovePackages(): apt.remove (['python3-dev', 'python3-setuptools', 'python3-pip']) +def setup_resolvconf(): + if os.path.islink('/etc/resolc.conf'): + os.unlink ('/etc/resolv.conf') + f = open ('/etc/resolv.conf', 'w') + f.write ('nameserver 8.8.8.8') + f.close() + def boottoolsInitrdGenerate (osrelease): print ('boottoolsInitrdGenerate', file=sys.stderr) for f in glob.glob ('/usr/lib/initramfs-tools/bin/*'): @@ -148,6 +155,7 @@ if __name__ == '__main__': debconf_settings = config['General'].get ('debconf_settings') updateCaCertificates() + setup_resolvconf() boottoolsSoftwareInstall (args.osarch, args.osrelease) boottoolsSoftwareCompile() boottoolsPythonModules()