Select NFS version with :nfs_version
This commit is contained in:
parent
3a8c44301b
commit
f9a42973d9
|
@ -91,7 +91,7 @@ module Vagrant
|
|||
key, opts = data
|
||||
opts[:map_uid] = prepare_permission(:uid, opts)
|
||||
opts[:map_gid] = prepare_permission(:gid, opts)
|
||||
opts[:version] ||= 3
|
||||
opts[:nfs_version] ||= 3
|
||||
|
||||
acc[key] = opts
|
||||
acc
|
||||
|
|
|
@ -60,7 +60,7 @@ module Vagrant
|
|||
|
||||
# Do the actual creating and mounting
|
||||
@vm.channel.sudo("mkdir -p #{real_guestpath}")
|
||||
@vm.channel.sudo("mount -o vers=#{opts[:version]} #{ip}:'#{opts[:hostpath]}' #{real_guestpath}",
|
||||
@vm.channel.sudo("mount -o vers=#{opts[:nfs_version]} #{ip}:'#{opts[:hostpath]}' #{real_guestpath}",
|
||||
:error_class => LinuxError,
|
||||
:error_key => :mount_nfs_fail)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue