Really remove all interfaces in dhcp-all-ifaces
As the doc says, we want to remove all interfaces that come by default in cloud images. Cloud images also come with an eth1 though, so lets just remove all interfaces. Change-Id: I49c74a3285e6a610ac723bdf976f3727d2736749
This commit is contained in:
parent
d5d2ad72b8
commit
4f4fab979e
@ -10,13 +10,13 @@ set -o pipefail
|
|||||||
# boot with DHCP.
|
# boot with DHCP.
|
||||||
|
|
||||||
# Fedora
|
# Fedora
|
||||||
rm -f /etc/sysconfig/network-scripts/ifcfg-eth0
|
rm -f /etc/sysconfig/network-scripts/ifcfg-eth*
|
||||||
|
|
||||||
# Ubuntu
|
# Ubuntu
|
||||||
rm -f /etc/network/interfaces.d/eth0.cfg
|
rm -f /etc/network/interfaces.d/eth*.cfg
|
||||||
|
|
||||||
# Debian
|
# Debian
|
||||||
rm -f /etc/network/interfaces.d/eth0
|
rm -f /etc/network/interfaces.d/eth*
|
||||||
|
|
||||||
# /etc/network/interfaces distributions
|
# /etc/network/interfaces distributions
|
||||||
if [ -f "/etc/network/interfaces" ]; then
|
if [ -f "/etc/network/interfaces" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user