zero out resolv.conf during install

Anaconda is writing an /etc/resolv.conf from the install environment.
The system should start out with an empty file, otherwise cloud-init
will try to use this information and may error:
https://bugs.launchpad.net/cloud-init/+bug/1670052
This commit is contained in:
Dusty Mabe
2017-03-28 14:56:51 -04:00
parent 483ef44d99
commit fc0a635bc4
2 changed files with 12 additions and 0 deletions

View File

@@ -255,5 +255,11 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-ens3
rm -f /etc/machine-id
touch /etc/machine-id
# Anaconda is writing an /etc/resolv.conf from the install environment.
# The system should start out with an empty file, otherwise cloud-init
# will try to use this information and may error:
# https://bugs.launchpad.net/cloud-init/+bug/1670052
truncate -s 0 /etc/resolv.conf
%end