Merge "debian: properly configure interfaces"

This commit is contained in:
Jenkins 2015-08-05 02:41:30 +00:00 committed by Gerrit Code Review
commit 2f4fde2294

View File

@ -26,6 +26,7 @@ echo $DISTRO_NAME > /etc/hostname
# cloud images expect eth0 and eth1 to use dhcp. # cloud images expect eth0 and eth1 to use dhcp.
mkdir -p /etc/network/interfaces.d mkdir -p /etc/network/interfaces.d
echo "source /etc/network/interfaces.d/*" >> /etc/network/interfaces
for interface in eth0 eth1; do for interface in eth0 eth1; do
cat << EOF | tee /etc/network/interfaces.d/$interface cat << EOF | tee /etc/network/interfaces.d/$interface
auto $interface auto $interface