Remove hardcoded interfaces configuration
Change-Id: I565d43777a6ac2d70b65af6f68a39cfd8cbe2788
Closes-Bug: #PROD-23196 (PROD:23196)
diff --git a/common/ubuntu_cleanup.sh b/common/ubuntu_cleanup.sh
index 3097bee..70b326b 100644
--- a/common/ubuntu_cleanup.sh
+++ b/common/ubuntu_cleanup.sh
@@ -46,6 +46,21 @@
echo > /var/log/cloud-init.log || true
fi
+cat << EOF >> /etc/network/interfaces
+# This file describes the network interfaces available on your system
+# and how to activate them. For more information, see interfaces(5).
+
+# The loopback network interface
+auto lo
+iface lo inet loopback
+
+# Source interfaces
+# Please check /etc/network/interfaces.d before changing this file
+# as interfaces may have been defined in /etc/network/interfaces.d
+# See LP: #1262951
+source /etc/network/interfaces.d/*.cfg
+EOF
+
# Clear\drop cache's
sync
echo 3 > /proc/sys/vm/drop_caches