Automatically enable symlinks on vboxsf for VirtualBox 4.1 (see #713 and 387692f9c8).

This commit is contained in:
Stephan Meissl 2013-10-23 23:00:07 +02:00
parent 9094a6b2b1
commit 889233ed94
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