From 0a0ba6de84485ae8504a7cef48c804bfbea2e393 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 15 Sep 2016 15:50:16 +0200 Subject: [PATCH] buildserver: ensure dirs to mount cache exist in guest VM instance It seems that the 9p synced folder setup is not as flexible and easy as the VirtualBox one, so we have to do more little things like this. --- buildserver/Vagrantfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildserver/Vagrantfile b/buildserver/Vagrantfile index c182e07e..c353b506 100644 --- a/buildserver/Vagrantfile +++ b/buildserver/Vagrantfile @@ -52,6 +52,10 @@ Vagrant.configure("2") do |config| config.vm.synced_folder configfile["cachedir"], '/vagrant/cache', create: true, type: synced_folder_type end + # Make sure dir exists to mount to, since buildserver/ is + # automatically mounted as /vagrant in the guest VM. This is more + # necessary with 9p synced folders + Dir.mkdir('cache') unless File.exists?('cache') # cache .deb packages on the host via a mount trick if configfile.has_key? "aptcachedir" -- 2.30.2