Merge pull request #2414 from Schpidi/symlinks_vb41

provider/virtualbox: automatically enable symlinks on vboxsf for VirtualBox 4.1
This commit is contained in:
Mitchell Hashimoto 2013-10-23 23:07:25 -07:00
commit c5dbe416ed
1 changed files with 5 additions and 0 deletions

View File

@ -427,7 +427,12 @@ module VagrantPlugins
"--hostpath",
folder[:hostpath]]
args << "--transient" if folder.has_key?(:transient) && folder[:transient]
# Add the shared folder
execute("sharedfolder", "add", @uuid, *args)
# Enable symlinks on the shared folder
execute("setextradata", @uuid, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/#{folder[:name]}", "1")
end
end