Update resolv.conf
parent
386a2a6175
commit
c9fa4eff93
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue