Add back creation of mount point

Accidentally removed in ad4b30dd
This commit is contained in:
Michael Dwyer 2014-12-10 10:56:30 -06:00
parent ff987b19ec
commit e65ae7b543
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"})