system() fixed vm detection (linux)
This commit is contained in:
+1
-1
@@ -159,7 +159,7 @@ function system(callback) {
|
||||
result.model = 'Docker Container';
|
||||
}
|
||||
try {
|
||||
const stdout = execSync('dmesg 2>/dev/null | grep -iE "virtual|hypervisor" | grep -iE "vmware|qemu|kvm|xen"');
|
||||
const stdout = execSync('dmesg 2>/dev/null | grep -iE "virtual|hypervisor" | grep -iE "vmware|qemu|kvm|xen" | grep -vi "Nested Virtualization"');
|
||||
// detect virtual machines
|
||||
let lines = stdout.toString().split('\n');
|
||||
if (lines.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user