mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-12 21:57:27 +03:00
basic/virt: Fix current virtualbox detection
In a current VirtualBox installation the board_vendor is set to "Oracle Corporation". So we need to add this to the dmi_vendor_table for a relieable detection. This fixes #13429 Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
This commit is contained in:
parent
013a87517d
commit
87bc4b40fc
@ -140,17 +140,18 @@ static int detect_vm_dmi(void) {
|
||||
const char *vendor;
|
||||
int id;
|
||||
} dmi_vendor_table[] = {
|
||||
{ "KVM", VIRTUALIZATION_KVM },
|
||||
{ "QEMU", VIRTUALIZATION_QEMU },
|
||||
{ "KVM", VIRTUALIZATION_KVM },
|
||||
{ "QEMU", VIRTUALIZATION_QEMU },
|
||||
/* http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 */
|
||||
{ "VMware", VIRTUALIZATION_VMWARE },
|
||||
{ "VMW", VIRTUALIZATION_VMWARE },
|
||||
{ "innotek GmbH", VIRTUALIZATION_ORACLE },
|
||||
{ "Xen", VIRTUALIZATION_XEN },
|
||||
{ "Bochs", VIRTUALIZATION_BOCHS },
|
||||
{ "Parallels", VIRTUALIZATION_PARALLELS },
|
||||
{ "VMware", VIRTUALIZATION_VMWARE },
|
||||
{ "VMW", VIRTUALIZATION_VMWARE },
|
||||
{ "innotek GmbH", VIRTUALIZATION_ORACLE },
|
||||
{ "Oracle Corporation", VIRTUALIZATION_ORACLE },
|
||||
{ "Xen", VIRTUALIZATION_XEN },
|
||||
{ "Bochs", VIRTUALIZATION_BOCHS },
|
||||
{ "Parallels", VIRTUALIZATION_PARALLELS },
|
||||
/* https://wiki.freebsd.org/bhyve */
|
||||
{ "BHYVE", VIRTUALIZATION_BHYVE },
|
||||
{ "BHYVE", VIRTUALIZATION_BHYVE },
|
||||
};
|
||||
unsigned i;
|
||||
int r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user