diff options
author | Greg Zuro <gregzuro@users.noreply.github.com> | 2021-10-27 06:02:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 06:02:37 +0200 |
commit | cfee6b955154c30be31ffcf0e3b7b89374a52fff (patch) | |
tree | 2d35d87e28402cc2b80d7b1e4ee7398f2afa0012 /src/basic/virt.c | |
parent | Merge pull request #21129 from yuwata/network-dhcp6-pd-vs-ndisc (diff) | |
download | systemd-cfee6b955154c30be31ffcf0e3b7b89374a52fff.tar.xz systemd-cfee6b955154c30be31ffcf0e3b7b89374a52fff.zip |
change indicator used for later versions of VirtualBox (#21127)
Detection of VirtualBox is accomplished in the existing code by *either* `innotek GmbH`
or `Oracle Corporation` existing in any of:
- /sys/class/dmi/id/product_name
- /sys/class/dmi/id/sys_vendor
- /sys/class/dmi/id/board_vendor
- /sys/class/dmi/id/bios_vendor
With Oracle's physical servers, both `/sys/class/dmi/id/sys_vendor` and
`/sys/class/dmi/id/board_vendor` contain `Oracle Corporation`, so those
servers are detected as `oracle` (VirtualBox).
VirtualBox has the following values in the latest versions:
- /sys/class/dmi/id/product_name: `VirtualBox`
- /sys/class/dmi/id/sys_vendor: `innotek GmbH`
- /sys/class/dmi/id/board_vendor: `Oracle Corporation`
- /sys/class/dmi/id/bios_vendor: `innotek GmbH`
Presumably the existing check for `innotek GmbH` is meant to detect
older versions of VirtualBox, while changing the second checked value
from `Oracle Corporation` to `VirtualBox` will reliably detect later and future
versions.
Diffstat (limited to 'src/basic/virt.c')
-rw-r--r-- | src/basic/virt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/virt.c b/src/basic/virt.c index 64581ad2e1..4e1cbf5b66 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -159,7 +159,7 @@ static int detect_vm_dmi_vendor(void) { { "VMware", VIRTUALIZATION_VMWARE }, /* https://kb.vmware.com/s/article/1009458 */ { "VMW", VIRTUALIZATION_VMWARE }, { "innotek GmbH", VIRTUALIZATION_ORACLE }, - { "Oracle Corporation", VIRTUALIZATION_ORACLE }, + { "VirtualBox", VIRTUALIZATION_ORACLE }, { "Xen", VIRTUALIZATION_XEN }, { "Bochs", VIRTUALIZATION_BOCHS }, { "Parallels", VIRTUALIZATION_PARALLELS }, |