mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-03 13:47:04 +03:00
virt: Update cache if the detected vm is virtualbox (#5364)
This commit is contained in:
parent
2ba7627ea3
commit
2f8e375d17
@ -329,8 +329,10 @@ int detect_vm(void) {
|
||||
* -> Third try to detect from dmi. */
|
||||
|
||||
dmi = detect_vm_dmi();
|
||||
if (dmi == VIRTUALIZATION_ORACLE)
|
||||
return dmi;
|
||||
if (dmi == VIRTUALIZATION_ORACLE) {
|
||||
r = dmi;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
r = detect_vm_cpuid();
|
||||
if (r < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user