We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f851e7 commit 7c076eeCopy full SHA for 7c076ee
1 file changed
tools/build_ramdisk.sh
@@ -120,8 +120,14 @@ RUN_SH=$CHROOTCACHE/natty-stack/$DEST/run.sh
120
cat > $RUN_SH <<EOF
121
#!/usr/bin/env bash
122
123
+# Get IP range
124
+set \`ip addr show dev eth0 | grep inet\`
125
+PREFIX=\`echo \$2 | cut -d. -f1,2,3\`
126
+export FLOATING_RANGE="\$PREFIX.224/27"
127
+
128
# Pre-empt download of natty image
129
tar czf $DEST/devstack/files/natty.tgz /etc/hosts
130
+mkdir -p $DEST/devstack/files/images
131
touch $DEST/devstack/files/images/natty-server-cloudimg-amd64-vmlinuz-virtual
132
touch $DEST/devstack/files/images/natty-server-cloudimg-amd64.img
133
@@ -137,6 +143,7 @@ EOF
137
143
138
144
# Make the run.sh executable
139
145
chmod 755 $RUN_SH
146
+chroot $CHROOTCACHE/natty-stack chown stack $DEST/run.sh
140
147
141
148
# build a new image
142
149
BASE=$CHROOTCACHE/build.$$
0 commit comments