mirror of
https://github.com/systemd/systemd.git
synced 2025-01-13 17:18:18 +03:00
Merge pull request #1998 from eworm-de/virt
virt: detect dmi before cpuid
This commit is contained in:
commit
062fc6d775
@ -269,13 +269,13 @@ int detect_vm(void) {
|
||||
if (cached_found >= 0)
|
||||
return cached_found;
|
||||
|
||||
r = detect_vm_cpuid();
|
||||
r = detect_vm_dmi();
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r != VIRTUALIZATION_NONE)
|
||||
goto finish;
|
||||
|
||||
r = detect_vm_dmi();
|
||||
r = detect_vm_cpuid();
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r != VIRTUALIZATION_NONE)
|
||||
|
Loading…
Reference in New Issue
Block a user