Merge pull request #4929 from kalifg/master

Add back creation of mount point
This commit is contained in:
Mitchell Hashimoto 2014-12-10 09:18:42 -08:00
commit ed688ec775
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ module VagrantPlugins
nfs_version_mount_option="-o nfsv#{opts[:nfs_version]}"
end
machine.communicate.sudo("mkdir -p #{opts[:guestpath]}", {shell: "sh"})
machine.communicate.sudo(
"mount -t nfs #{nfs_version_mount_option} " +
"'#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'", {shell: "sh"})