mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
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:
parent
836e293585
commit
4d4ac92c92
@ -117,6 +117,8 @@ static int detect_vm_device_tree(void) {
|
|||||||
return VIRTUALIZATION_KVM;
|
return VIRTUALIZATION_KVM;
|
||||||
else if (strstr(hvtype, "xen"))
|
else if (strstr(hvtype, "xen"))
|
||||||
return VIRTUALIZATION_XEN;
|
return VIRTUALIZATION_XEN;
|
||||||
|
else if (strstr(hvtype, "vmware"))
|
||||||
|
return VIRTUALIZATION_VMWARE;
|
||||||
else
|
else
|
||||||
return VIRTUALIZATION_VM_OTHER;
|
return VIRTUALIZATION_VM_OTHER;
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user