From 48f5b0d53b8d93dc867e68bf0a0c94e4294223ea Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 6 May 2014 13:48:32 -0700 Subject: [PATCH] providers/virtualbox: package --base should use vboxsf --- plugins/providers/virtualbox/synced_folder.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/providers/virtualbox/synced_folder.rb b/plugins/providers/virtualbox/synced_folder.rb index 5ae14e63f..4a3ed916b 100644 --- a/plugins/providers/virtualbox/synced_folder.rb +++ b/plugins/providers/virtualbox/synced_folder.rb @@ -5,9 +5,12 @@ 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 && - machine.provider_config.functional_vboxsf + 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 def prepare(machine, folders, _opts)