added pciconf virtual detection
This commit is contained in:
parent
7e710db75f
commit
39db1b6f8a
@ -108,7 +108,7 @@ function system(callback) {
|
||||
if (!result.virtual) {
|
||||
try {
|
||||
const disksById = execSync('ls -1 /dev/disk/by-id/ 2>/dev/null; pciconf -lv 2>/dev/null', util.execOptsLinux).toString();
|
||||
if (disksById.indexOf('_QEMU_') >= 0) {
|
||||
if (disksById.indexOf('_QEMU_') >= 0 || disksById.indexOf('QEMU ') >= 0) {
|
||||
result.virtual = true;
|
||||
result.virtualHost = 'QEMU';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user