Browse Source

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
changes/96/795696/2 14.0.0
Alex Schultz 5 days ago
parent
commit
f90a830fba
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      elements/interface-names/install.d/71-clean-stale-interface

+ 3
- 3
elements/interface-names/install.d/71-clean-stale-interface 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*

Loading…
Cancel
Save