synced_folder: Fix mount_options on Vagrant 1.4+
This commit is contained in:
parent
d6a22c9f88
commit
da96e8c1a4
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ module Vagrant
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def share_folder(host_path, guest_path, mount_options = ['bind'])
|
def share_folder(host_path, guest_path, mount_options = nil)
|
||||||
guest_path = rootfs_path.join(guest_path.gsub(/^\//, ''))
|
guest_path = rootfs_path.join(guest_path.gsub(/^\//, ''))
|
||||||
unless guest_path.directory?
|
unless guest_path.directory?
|
||||||
begin
|
begin
|
||||||
|
@ -77,7 +77,7 @@ module Vagrant
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
mount_options = Array(mount_options)
|
mount_options = Array(mount_options || ['bind'])
|
||||||
@customizations << ['mount.entry', "#{host_path} #{guest_path} none #{mount_options.join(',')} 0 0"]
|
@customizations << ['mount.entry', "#{host_path} #{guest_path} none #{mount_options.join(',')} 0 0"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue