mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #368 from relenda/hotfix-9p-target-template
Fixed wrong target spec in 9p-fs template
This commit is contained in:
commit
063ebfc08d
@ -43,7 +43,8 @@ module VagrantPlugins
|
|||||||
begin
|
begin
|
||||||
# loop through folders
|
# loop through folders
|
||||||
folders.each do |id, folder_opts|
|
folders.each do |id, folder_opts|
|
||||||
folder_opts.merge!({ :accessmode => "passthrough",
|
folder_opts.merge!({ :target => id,
|
||||||
|
:accessmode => "passthrough",
|
||||||
:readonly => nil }) { |_k, ov, _nv| ov }
|
:readonly => nil }) { |_k, ov, _nv| ov }
|
||||||
machine.ui.info "================\nMachine id: #{machine.id}\nShould be mounting folders\n #{id}, opts: #{folder_opts}"
|
machine.ui.info "================\nMachine id: #{machine.id}\nShould be mounting folders\n #{id}, opts: #{folder_opts}"
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<filesystem type='mount' accessmode='<%= accessmode %>'>
|
<filesystem type='mount' accessmode='<%= accessmode %>'>
|
||||||
<driver type='path' wrpolicy='immediate'/>
|
<driver type='path' wrpolicy='immediate'/>
|
||||||
<source dir='<%= hostpath %>'/>
|
<source dir='<%= hostpath %>'/>
|
||||||
<target dir='<%= guestpath %>'/>
|
<target dir='<%= target %>'/>
|
||||||
<% unless readonly.nil? %>
|
<% unless readonly.nil? %>
|
||||||
<readonly />
|
<readonly />
|
||||||
<% end %>
|
<% end %>
|
||||||
</filesystem>
|
</filesystem>
|
||||||
|
Loading…
Reference in New Issue
Block a user