]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/virt: Fix virtualbox detection on proprietary system via board_vendor
authorFriedrich Altheide <11352905+FriedrichAltheide@users.noreply.github.com>
Wed, 20 Mar 2024 16:48:39 +0000 (17:48 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 24 Mar 2024 18:02:42 +0000 (18:02 +0000)
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

src/basic/virt.c

index b976d2af14f669c561c90bd51604cee68c1adee0..7e2c0781fe12870bcd9e4bc36488c90ce5930c13 100644 (file)
@@ -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 },