#12 Empty resolv.conf during %post
Merged 3 months ago by bstinson. Opened 7 months ago by jguldmyr.
centos/ jguldmyr/kickstarts 0016948_resolver_removal  into  master

Empty resolv.conf during %post
Johan Guldmyr • 3 months 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

rebased onto 3c8301d

3 months ago

Pull-Request has been merged by bstinson

3 months ago