Merge pull request #5094 from wkolean/docker-vbox-symlink-fix

enable symlinks before adding shared folder
This commit is contained in:
Mitchell Hashimoto 2015-01-05 09:49:56 -08:00
commit d5c1c28a2b
3 changed files with 9 additions and 9 deletions

View File

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

View File

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

View File

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