Note that NFS doesn't support owner/group settings
This commit is contained in:
parent
6d6087ce73
commit
9e780606f4
|
@ -46,7 +46,8 @@ module Vagrant
|
|||
:guestpath => guestpath,
|
||||
:hostpath => hostpath,
|
||||
:owner => nil,
|
||||
:group => nil
|
||||
:group => nil,
|
||||
:nfs => false
|
||||
}.merge(opts || {})
|
||||
end
|
||||
|
||||
|
@ -117,6 +118,12 @@ module Vagrant
|
|||
:name => name,
|
||||
:path => options[:hostpath]))
|
||||
end
|
||||
|
||||
if options[:nfs] && (options[:owner] || options[:group])
|
||||
# Owner/group don't work with NFS
|
||||
errors.add(I18n.t("vagrant.config.vm.shared_folder_nfs_owner_group",
|
||||
:name => name))
|
||||
end
|
||||
end
|
||||
|
||||
# Each provisioner can validate itself
|
||||
|
|
|
@ -173,6 +173,8 @@ en:
|
|||
box_missing: "A box must be specified."
|
||||
box_not_found: "The box '%{name}' could not be found."
|
||||
shared_folder_hostpath_missing: "Shared folder host path for '%{name}' doesn't exist: %{path}"
|
||||
shared_folder_nfs_owner_group: |-
|
||||
Shared folder '%{name}': NFS does not support the owner/group settings.
|
||||
provisioner_chef_server_changed: "The provisioner 'chef_server' is now 'chef_client'"
|
||||
provisioner_not_found: "The provisioner '%{shortcut}' doesn't exist."
|
||||
provisioner_invalid_class: "The provisioner '%{shortcut}' must inherit from `Vagrant::Provisioners::Base`."
|
||||
|
|
Loading…
Reference in New Issue