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
(cherry picked from commit f90a830fba
)
This commit is contained in:
parent
74acb5493f
commit
fb4c3621f4
|
@ -4,6 +4,6 @@ set -eux
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# https://bugs.centos.org/view.php?id=17133
|
# 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-ens*
|
||||||
rm -f /etc/sysconfig/network-scripts/ifcfg-ens3*
|
# https://bugs.launchpad.net/tripleo/+bug/1931495
|
||||||
fi
|
rm -f /etc/sysconfig/network-scripts/ifcfg-eth*
|
||||||
|
|
Loading…
Reference in New Issue