In RHEL 8.4, /etc/resolv.conf is not present by default. As such, removing the nameservers will fail because etc/resolv.conf.ORIG never gets created. This patch makes the nameserver edit only if the etc/resolv.conf.ORIG file exists. Change-Id: I2178996d899ffe43e11bfeb512e4fcaa941b8410
Clears an existing
/etc/resolv.conf from the resulting image, so that it
it will be managed via the network configuration.