Skip to content

buildserver: clean up secondary libvirt box image after rebuild

Boxes are stored in two places when using vagrant-libvirt:

  1. vagrant box add -> ~/.vagrant.d/boxes/buildserver/0/libvirt/
  2. vagrant up -> /var/lib/libvirt/images/buildserver_vagrant_box_image_0_box.img

If the second box is not cleaned up, then fdroid build will continue to use the one from the second location, thereby ignoring the updated one at the first location. This keeps the second one around until the new box is ready in case fdroid build is using it while this script is running.

Merge request reports