install cloud-utils, so that we have resize-part-image
| ... | ... |
@@ -1,8 +1,8 @@ |
| 1 | 1 |
#!/usr/bin/env bash |
| 2 | 2 |
|
| 3 |
-# Make sure that we have the proper version of ubuntu (only works on natty/oneiric) |
|
| 4 |
-if ! egrep -q "oneiric|natty" /etc/lsb-release; then |
|
| 5 |
- echo "This script only works with ubuntu oneiric and natty" |
|
| 3 |
+# Make sure that we have the proper version of ubuntu (only works on oneiric) |
|
| 4 |
+if ! egrep -q "oneiric" /etc/lsb-release; then |
|
| 5 |
+ echo "This script only works with ubuntu oneiric." |
|
| 6 | 6 |
exit 1 |
| 7 | 7 |
fi |
| 8 | 8 |
|
| ... | ... |
@@ -33,7 +33,7 @@ if [ ! -e $TOP_DIR/localrc ]; then |
| 33 | 33 |
fi |
| 34 | 34 |
|
| 35 | 35 |
# Install deps if needed |
| 36 |
-DEPS="kvm libvirt-bin kpartx" |
|
| 36 |
+DEPS="kvm libvirt-bin kpartx cloud-utils" |
|
| 37 | 37 |
dpkg -l $DEPS || apt-get install -y --force-yes $DEPS |
| 38 | 38 |
|
| 39 | 39 |
# Where to store files and instances |