fix nfs mount fail with freebsd.

This commit is contained in:
Heikichi Umehara 2013-10-21 08:42:57 +09:00
parent 673a06b54d
commit c0eb9bd35a
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ module VagrantPlugins
def self.mount_nfs_folder(machine, ip, folders)
folders.each do |name, opts|
machine.communicate.sudo("mkdir -p #{opts[:guestpath]}")
machine.communicate.sudo("mount '#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'")
machine.communicate.sudo("mount -t nfs '#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'")
end
end
end