virt: Update cache if the detected vm is virtualbox (#5364)

This commit is contained in:
Benjamin Robin 2017-02-17 08:45:30 +01:00 committed by Martin Pitt
parent 2ba7627ea3
commit 2f8e375d17

View file

@ -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)