mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +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;
|
||||
else if (strstr(hvtype, "xen"))
|
||||
return VIRTUALIZATION_XEN;
|
||||
else if (strstr(hvtype, "vmware"))
|
||||
return VIRTUALIZATION_VMWARE;
|
||||
else
|
||||
return VIRTUALIZATION_VM_OTHER;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user