From 4f4fab979e496164493c539af4fff85804a3ad0d Mon Sep 17 00:00:00 2001 From: Gregory Haynes Date: Wed, 23 Mar 2016 05:57:56 +0000 Subject: [PATCH] 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 --- .../install.d/60-remove-cloud-image-interfaces | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elements/dhcp-all-interfaces/install.d/60-remove-cloud-image-interfaces b/elements/dhcp-all-interfaces/install.d/60-remove-cloud-image-interfaces index 6d2cc621..1b4eef39 100755 --- a/elements/dhcp-all-interfaces/install.d/60-remove-cloud-image-interfaces +++ b/elements/dhcp-all-interfaces/install.d/60-remove-cloud-image-interfaces @@ -10,13 +10,13 @@ set -o pipefail # boot with DHCP. # Fedora -rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 +rm -f /etc/sysconfig/network-scripts/ifcfg-eth* # Ubuntu -rm -f /etc/network/interfaces.d/eth0.cfg +rm -f /etc/network/interfaces.d/eth*.cfg # Debian -rm -f /etc/network/interfaces.d/eth0 +rm -f /etc/network/interfaces.d/eth* # /etc/network/interfaces distributions if [ -f "/etc/network/interfaces" ]; then