Commit 7986269f authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

Compress the Vagrant qemu image

parent c16b3731
Pipeline #1939 passed with stages
in 19 minutes and 24 seconds
......@@ -185,7 +185,7 @@ EOF
local virtual_size
virtual_size="$(grep -o "^[0-9]*" <<<"${DISK_SIZE}")"
echo '{"format":"qcow2","provider":"libvirt","virtual_size":'"${virtual_size}"'}' >metadata.json
qemu-img convert -f raw -O qcow2 "${1}" box.img
qemu-img convert -c -f raw -O qcow2 "${1}" box.img
rm "${1}"
tar -czf "${2}" Vagrantfile metadata.json box.img
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment