···5959 exit 1
6060fi
61616262-cp "$template_file" "$disk"
6262+# Copy from the source image to the VM image, making sure to upgrade the QCOW2 image version along the way
6363+qemu-img convert -O qcow2 -o compat=1.1 "$template_file" "$disk"
6464+6365cp /tank/config/cyberia-cloudinit.yml /tmp/cloudinit.yml
6466echo "$pubkeys" | while IFS= read -r line; do
6567 echo " - $line" >> /tmp/cloudinit.yml