From 70c8aef27398ab3dbae4b3721c1f65599afcd1f7 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Wed, 5 Jun 2019 11:23:59 -0500 Subject: [PATCH] Vagrantfile: Allow VMs to be provisioned multiple times --- Vagrantfile | 16 +++++++++------- vagrant-user-setup.sh | 10 ++++++---- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 92f73cdd..9e1d2c11 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -90,14 +90,15 @@ Vagrant.configure(2) do |config| #allow vagrant user to run docker adduser vagrant docker - #download build of recent mingw-w64 with dwarf2 exceptions enabled - wget -O /root/dxvk_crosscc.tar.xz 'http://repo.steampowered.com/proton_mingw/proton_mingw-9.1-1.tar.xz' - unxz -T0 /root/dxvk_crosscc.tar.xz - mkdir -p /srv/chroot/dxvk_crosscc/ - tar -xf /root/dxvk_crosscc.tar -C /srv/chroot/dxvk_crosscc/ + if ! schroot -i -c dxvk_crosscc >/dev/null 2>&1; then + #download build of recent mingw-w64 with dwarf2 exceptions enabled + wget --progress=dot -O /root/dxvk_crosscc.tar.xz 'http://repo.steampowered.com/proton_mingw/proton_mingw-9.1-1.tar.xz' + unxz -T0 /root/dxvk_crosscc.tar.xz + mkdir -p /srv/chroot/dxvk_crosscc/ + tar -xf /root/dxvk_crosscc.tar -C /srv/chroot/dxvk_crosscc/ - #install dxvk_crosscc schroot - cat > /etc/schroot/chroot.d/dxvk_crosscc < /etc/schroot/chroot.d/dxvk_crosscc <