Browse code

Configure network for DHCP

Dean Troyer authored on 2011/10/04 03:42:16
Showing 1 changed files
... ...
@@ -101,6 +101,16 @@ if [ "$USE_CURRENT_DEVSTACK" = "1" ]; then
101 101
     cp -pr $CWD $CHROOTCACHE/natty-stack/$DEST/devstack
102 102
 fi
103 103
 
104
+# Configure host network for DHCP
105
+mkdir -p $CHROOTCACHE/natty-stack/etc/network
106
+cat > $$CHROOTCACHE/natty-stack/etc/network/interfaces <<EOF
107
+auto lo
108
+iface lo inet loopback
109
+
110
+auto eth0
111
+iface eth0 inet dhcp
112
+EOF
113
+
104 114
 # build a new image
105 115
 BASE=$CHROOTCACHE/build.$$
106 116
 IMG=$BASE.img