basic: add vmware hypervisor detection from device-tree

Allow ConditionVirtualization=vmware to work on ESXi on arm VMs
using device-tree.
This commit is contained in:
Cyprien Laplace 2019-11-14 09:42:14 -05:00 committed by Lennart Poettering
parent 836e293585
commit 4d4ac92c92
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ static int detect_vm_device_tree(void) {
return VIRTUALIZATION_KVM;
else if (strstr(hvtype, "xen"))
return VIRTUALIZATION_XEN;
else if (strstr(hvtype, "vmware"))
return VIRTUALIZATION_VMWARE;
else
return VIRTUALIZATION_VM_OTHER;
#else