tune vm build

This commit is contained in:
j 2017-11-07 23:10:03 +01:00
commit 7cbb46458a
3 changed files with 13 additions and 3 deletions

View file

@ -7,8 +7,12 @@ TARGET=${BASE}/pandora-r${VERSION}.vdi
img=xenial-server-cloudimg-amd64-disk1.img
test -e $img || curl -O https://cloud-images.ubuntu.com/xenial/current/$img
cp --reflink=always $img ${TARGET}.img
if [ ! -e $img ]; then
echo downloading $img
curl -s -O https://cloud-images.ubuntu.com/xenial/current/$img
fi
echo preparing ${TARGET}.img
cp -a $img ${TARGET}.img
cloud-localds seed.img cloud-config
qemu-img resize ${TARGET}.img +998G