ensure any ens3 interface is nuked during image build

It seems as though w/ CentOS-8.3 ens3 has crept
back into play.  Ensure it's not in the overcloud
images.  See bug for details.

Closes-Bug: #1910107
Change-Id: I29d632814577db0b720b07d4497983e267d46a4e
(cherry picked from commit d072a79acf)
This commit is contained in:
Wes Hayutin 2021-01-04 12:39:44 -07:00 committed by Alex Schultz
parent 2b5e3aaefd
commit 49c16a368e
1 changed files with 2 additions and 2 deletions

View File

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