#12 Empty resolv.conf during %post
Opened 4 days ago by jguldmyr. Modified 4 days ago
centos/ jguldmyr/kickstarts 0016948_resolver_removal  into  master

Empty resolv.conf during %post
Johan Guldmyr • 4 days ago  

@@ -60,6 +60,9 @@ 

  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*

@@ -60,6 +60,9 @@ 

  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*

  • Fixes #0016948 where 192.168.122.1 is still inside /etc/resolv.conf

https://bugs.centos.org/view.php?id=16948

Have not built an image with this myself so have not really tested this other than checking that my CentOS8 VM in our openstack can still boot with an empty resolv.conf