Configure network for DHCP

This commit is contained in:
Dean Troyer 2011-10-03 13:42:16 -05:00
parent 3508a3a926
commit cf9db8da33

View File

@ -101,6 +101,16 @@ if [ "$USE_CURRENT_DEVSTACK" = "1" ]; then
cp -pr $CWD $CHROOTCACHE/natty-stack/$DEST/devstack
fi
# Configure host network for DHCP
mkdir -p $CHROOTCACHE/natty-stack/etc/network
cat > $$CHROOTCACHE/natty-stack/etc/network/interfaces <<EOF
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
EOF
# build a new image
BASE=$CHROOTCACHE/build.$$
IMG=$BASE.img