Clean up ifcfg-eth0

If ifcfg-eth0 is defined but does not exist, this can cause the nodes to
fail to get an IP address on initial provisioning. This patch removes it
when the image is built to ensure we don't end up with a bad interface
network script.

Change-Id: I3b8cb5f8c413c109da1228878db9cff4d439273b
Closes-Bug: #1931495
This commit is contained in:
Alex Schultz 2021-06-09 14:32:22 -06:00
parent ada0d3aad1
commit f90a830fba
1 changed files with 3 additions and 3 deletions

View File

@ -4,6 +4,6 @@ set -eux
set -o pipefail
# https://bugs.centos.org/view.php?id=17133
if ls /etc/sysconfig/network-scripts/ifcfg-ens3* &> /dev/null; then
rm -f /etc/sysconfig/network-scripts/ifcfg-ens3*
fi
rm -f /etc/sysconfig/network-scripts/ifcfg-ens*
# https://bugs.launchpad.net/tripleo/+bug/1931495
rm -f /etc/sysconfig/network-scripts/ifcfg-eth*