virt: Update cache if the detected vm is virtualbox (#5364)
This commit is contained in:
committed by
Martin Pitt
parent
2ba7627ea3
commit
2f8e375d17
+4
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user