providers/virtualbox: package --base should use vboxsf
This commit is contained in:
parent
4ef237a642
commit
48f5b0d53b
|
@ -5,8 +5,11 @@ 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 &&
|
|
||||||
|
# This only happens with `vagrant package --base`. Sigh.
|
||||||
|
return true if !machine.provider_config
|
||||||
|
|
||||||
machine.provider_config.functional_vboxsf
|
machine.provider_config.functional_vboxsf
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue