Configure network for DHCP
This commit is contained in:
parent
3508a3a926
commit
cf9db8da33
@ -101,6 +101,16 @@ if [ "$USE_CURRENT_DEVSTACK" = "1" ]; then
|
|||||||
cp -pr $CWD $CHROOTCACHE/natty-stack/$DEST/devstack
|
cp -pr $CWD $CHROOTCACHE/natty-stack/$DEST/devstack
|
||||||
fi
|
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
|
# build a new image
|
||||||
BASE=$CHROOTCACHE/build.$$
|
BASE=$CHROOTCACHE/build.$$
|
||||||
IMG=$BASE.img
|
IMG=$BASE.img
|
||||||
|
Loading…
Reference in New Issue
Block a user