simple-init: also remove en* interfaces from the images
Modern distros use more creative interface naming, e.g. CentOS 8 adds both eth0 and ens3 (!). Remove everything. Change-Id: Ibdebdb09ea790787840cf9b817d4eb549ef18249
This commit is contained in:
parent
c160538465
commit
1462b80781
@ -6,20 +6,20 @@ fi
|
|||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# Cloud images may hard code the eth0 interfaces so they
|
# Cloud images may hard code the eth0/ens* interfaces so they
|
||||||
# boot with DHCP.
|
# boot with DHCP.
|
||||||
|
|
||||||
# Fedora
|
# Fedora
|
||||||
rm -f /etc/sysconfig/network-scripts/ifcfg-eth*
|
rm -f /etc/sysconfig/network-scripts/ifcfg-eth*
|
||||||
|
rm -f /etc/sysconfig/network-scripts/ifcfg-en*
|
||||||
|
|
||||||
# SUSE
|
# SUSE
|
||||||
rm -f /etc/sysconfig/network/ifcfg-eth*
|
rm -f /etc/sysconfig/network/ifcfg-eth*
|
||||||
|
rm -f /etc/sysconfig/network/ifcfg-en*
|
||||||
|
|
||||||
# Ubuntu
|
# Ubuntu and Debian
|
||||||
rm -f /etc/network/interfaces.d/eth*
|
|
||||||
|
|
||||||
# Debian
|
|
||||||
rm -f /etc/network/interfaces.d/eth*
|
rm -f /etc/network/interfaces.d/eth*
|
||||||
|
rm -f /etc/network/interfaces.d/en*
|
||||||
|
|
||||||
# Gentoo
|
# Gentoo
|
||||||
rm -f /etc/conf.d/net*
|
rm -f /etc/conf.d/net*
|
||||||
|
Loading…
Reference in New Issue
Block a user