From: Friedrich Altheide <11352905+FriedrichAltheide@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:48:39 +0000 (+0100) Subject: basic/virt: Fix virtualbox detection on proprietary system via board_vendor X-Git-Tag: v256-rc1~423 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e3c08d37510ec1001f98c09420c83bd8f775023;p=thirdparty%2Fsystemd.git basic/virt: Fix virtualbox detection on proprietary system via board_vendor Identify an virtualbox instance even if product_name, sys_vendor and bios_vendor reflect the information of the real hardware, by checking if board_vendor == "Oracle Corporation" This fixes #13429 again The previous fix was removed in #21127 --- diff --git a/src/basic/virt.c b/src/basic/virt.c index b976d2af14f..7e2c0781fe1 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -179,6 +179,7 @@ static Virtualization detect_vm_dmi_vendor(void) { { "VMW", VIRTUALIZATION_VMWARE }, { "innotek GmbH", VIRTUALIZATION_ORACLE }, { "VirtualBox", VIRTUALIZATION_ORACLE }, + { "Oracle Corporation", VIRTUALIZATION_ORACLE }, /* Detect VirtualBox on some proprietary systems via the board_vendor */ { "Xen", VIRTUALIZATION_XEN }, { "Bochs", VIRTUALIZATION_BOCHS }, { "Parallels", VIRTUALIZATION_PARALLELS },