mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
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.
This commit is contained in:
parent
988647a387
commit
0a0ba6de84
4
buildserver/Vagrantfile
vendored
4
buildserver/Vagrantfile
vendored
@ -52,6 +52,10 @@ Vagrant.configure("2") do |config|
|
|||||||
config.vm.synced_folder configfile["cachedir"], '/vagrant/cache',
|
config.vm.synced_folder configfile["cachedir"], '/vagrant/cache',
|
||||||
create: true, type: synced_folder_type
|
create: true, type: synced_folder_type
|
||||||
end
|
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
|
# cache .deb packages on the host via a mount trick
|
||||||
if configfile.has_key? "aptcachedir"
|
if configfile.has_key? "aptcachedir"
|
||||||
|
Loading…
Reference in New Issue
Block a user