Skip to content

Commit 39db1b6

Browse files
added pciconf virtual detection
1 parent 7e710db commit 39db1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/system.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function system(callback) {
108108
if (!result.virtual) {
109109
try {
110110
const disksById = execSync('ls -1 /dev/disk/by-id/ 2>/dev/null; pciconf -lv 2>/dev/null', util.execOptsLinux).toString();
111-
if (disksById.indexOf('_QEMU_') >= 0) {
111+
if (disksById.indexOf('_QEMU_') >= 0 || disksById.indexOf('QEMU ') >= 0) {
112112
result.virtual = true;
113113
result.virtualHost = 'QEMU';
114114
}

0 commit comments

Comments
 (0)