providers/virtualbox: package --base should use vboxsf

This commit is contained in:
Mitchell Hashimoto 2014-05-06 13:48:32 -07:00
parent 4ef237a642
commit 48f5b0d53b
1 changed files with 6 additions and 3 deletions

View File

@ -5,8 +5,11 @@ module VagrantPlugins
class SyncedFolder < Vagrant.plugin("2", :synced_folder)
def usable?(machine, raise_errors=false)
# These synced folders only work if the provider if VirtualBox
machine.provider_name == :virtualbox &&
machine.provider_config &&
return false if machine.provider_name != :virtualbox
# This only happens with `vagrant package --base`. Sigh.
return true if !machine.provider_config
machine.provider_config.functional_vboxsf
end