Support verify_vmware_hgfs in darwin guest.
This commit is contained in:
parent
471dc2dc7d
commit
caaaa9fe28
|
@ -0,0 +1,12 @@
|
||||||
|
module VagrantPlugins
|
||||||
|
module GuestDarwin
|
||||||
|
module Cap
|
||||||
|
class VerifyVmwareHgfs
|
||||||
|
def self.verify_vmware_hgfs(machine)
|
||||||
|
kext_bundle_id = "com.vmware.kext.vmhgfs"
|
||||||
|
machine.communicate.test("kextstat -b #{kext_bundle_id} -l | grep #{kext_bundle_id}")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -40,6 +40,11 @@ module VagrantPlugins
|
||||||
require_relative "cap/shell_expand_guest_path"
|
require_relative "cap/shell_expand_guest_path"
|
||||||
Cap::ShellExpandGuestPath
|
Cap::ShellExpandGuestPath
|
||||||
end
|
end
|
||||||
|
|
||||||
|
guest_capability("darwin", "verify_vmware_hgfs") do
|
||||||
|
require_relative "cap/verify_vmware_hgfs"
|
||||||
|
Cap::VerifyVmwareHgfs
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue