Fixed wrong target spec in 9p-fs template

This commit is contained in:
Patrick Truebe 2015-05-15 15:29:20 +02:00
parent 311bdc5f23
commit a2ec37159c
2 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,8 @@ module VagrantPlugins
begin
# loop through folders
folders.each do |id, folder_opts|
folder_opts.merge!({ :accessmode => "passthrough",
folder_opts.merge!({ :target => id,
:accessmode => "passthrough",
:readonly => nil }) { |_k, ov, _nv| ov }
machine.ui.info "================\nMachine id: #{machine.id}\nShould be mounting folders\n #{id}, opts: #{folder_opts}"

View File

@ -1,8 +1,8 @@
<filesystem type='mount' accessmode='<%= accessmode %>'>
<driver type='path' wrpolicy='immediate'/>
<source dir='<%= hostpath %>'/>
<target dir='<%= guestpath %>'/>
<target dir='<%= target %>'/>
<% unless readonly.nil? %>
<readonly />
<% end %>
</filesystem>
</filesystem>