Skip to content

Commit

Permalink
Add Hyper V check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Bacon committed Nov 25, 2021
1 parent c38fd64 commit ccd01e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion desktop-installer
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,16 @@ vmware_guest()
return $?
}

hyper_v_guest()
{
test $(sysctl -n kern.vm_guest) = hv
}

vm_guest()
{
# FIXME: Add support for other hypervisors and emulators
vbox_guest || parallels_guest || vmware_guest
vbox_guest || parallels_guest || vmware_guest || hyper_v_guest

return $?
}

Expand Down

0 comments on commit ccd01e2

Please sign in to comment.