diff --git a/lib/vagrant-libvirt/cap/synced_folder.rb b/lib/vagrant-libvirt/cap/synced_folder.rb index 90e7133..a3ba6ca 100644 --- a/lib/vagrant-libvirt/cap/synced_folder.rb +++ b/lib/vagrant-libvirt/cap/synced_folder.rb @@ -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}" diff --git a/lib/vagrant-libvirt/templates/filesystem.xml.erb b/lib/vagrant-libvirt/templates/filesystem.xml.erb index 469cae6..d0a35c9 100644 --- a/lib/vagrant-libvirt/templates/filesystem.xml.erb +++ b/lib/vagrant-libvirt/templates/filesystem.xml.erb @@ -1,8 +1,8 @@ - + <% unless readonly.nil? %> <% end %> - \ No newline at end of file +