From 3c8301d3f74a343ddadc40578aa2066dd6a3da70 Mon Sep 17 00:00:00 2001 From: Johan Guldmyr Date: Jun 10 2020 20:25:13 +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*