From 035fdfc89e837a77e358d0796c2e0860ff12871c Mon Sep 17 00:00:00 2001 From: Johan Guldmyr Date: Feb 13 2020 07:10:29 +0000 Subject: Empty resolv.conf during %post - Fixes #0016948 https://bugs.centos.org/view.php?id=16948 --- diff --git a/CentOS-8-GenericCloud.ks b/CentOS-8-GenericCloud.ks index b01ecfe..ca4ca21 100644 --- a/CentOS-8-GenericCloud.ks +++ b/CentOS-8-GenericCloud.ks @@ -60,6 +60,9 @@ NETWORKING=yes NOZEROCONF=yes EOF +# Remove build-time resolvers to fix #16948 +echo > /etc/resolv.conf + # For cloud images, 'eth0' _is_ the predictable device name, since # we don't want to be tied to specific virtual (!) hardware rm -f /etc/udev/rules.d/70* diff --git a/CentOS-8-Stream-GenericCloud.ks b/CentOS-8-Stream-GenericCloud.ks index f273564..eb25737 100644 --- a/CentOS-8-Stream-GenericCloud.ks +++ b/CentOS-8-Stream-GenericCloud.ks @@ -60,6 +60,9 @@ NETWORKING=yes NOZEROCONF=yes EOF +# Remove build-time resolvers to fix #16948 +echo > /etc/resolv.conf + # For cloud images, 'eth0' _is_ the predictable device name, since # we don't want to be tied to specific virtual (!) hardware rm -f /etc/udev/rules.d/70*