providers/virtualbox: package --base should use vboxsf
This commit is contained in:
parent
4ef237a642
commit
48f5b0d53b
|
@ -5,9 +5,12 @@ module VagrantPlugins
|
||||||
class SyncedFolder < Vagrant.plugin("2", :synced_folder)
|
class SyncedFolder < Vagrant.plugin("2", :synced_folder)
|
||||||
def usable?(machine, raise_errors=false)
|
def usable?(machine, raise_errors=false)
|
||||||
# These synced folders only work if the provider if VirtualBox
|
# These synced folders only work if the provider if VirtualBox
|
||||||
machine.provider_name == :virtualbox &&
|
return false if machine.provider_name != :virtualbox
|
||||||
machine.provider_config &&
|
|
||||||
machine.provider_config.functional_vboxsf
|
# This only happens with `vagrant package --base`. Sigh.
|
||||||
|
return true if !machine.provider_config
|
||||||
|
|
||||||
|
machine.provider_config.functional_vboxsf
|
||||||
end
|
end
|
||||||
|
|
||||||
def prepare(machine, folders, _opts)
|
def prepare(machine, folders, _opts)
|
||||||
|
|
Loading…
Reference in New Issue