#!/bin/sh -eux

# disable apt-daily as it refreshes the package cache (and locks dpkg) on boot
systemctl disable --now apt-daily.service

export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y dist-upgrade
apt-get install -y git rsync

for i in $(./qa/admin/check-vm -p); do apt-get install -y "$i" || true; done
rm -rf ./qa

apt-get install -y zlib1g-dev
