From 7e710db75fad8435a78450e09c2d0271b3d46b7c Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 19 Jun 2025 10:52:05 +0200 Subject: [PATCH] added pciconf virtual detection --- lib/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.js b/lib/system.js index 0915b2b..4f8c246 100644 --- a/lib/system.js +++ b/lib/system.js @@ -107,7 +107,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(); + 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) { result.virtual = true; result.virtualHost = 'QEMU';