a03d84
From 8f07f88aaf41f7609c9ba584ea0c291d566fa6e5 Mon Sep 17 00:00:00 2001
445594
From: Jasper Lievisse Adriaanse <bug@jasper.la>
445594
Date: Thu, 10 Aug 2017 08:44:01 +0100
a03d84
Subject: [PATCH 1/8] Missing have_cpuinfo check.
445594
445594
---
445594
 virt-what.in | 2 +-
445594
 1 file changed, 1 insertion(+), 1 deletion(-)
445594
445594
diff --git a/virt-what.in b/virt-what.in
445594
index 8c27b11..9050035 100644
445594
--- a/virt-what.in
445594
+++ b/virt-what.in
445594
@@ -308,7 +308,7 @@ if ! "$skip_qemu_kvm"; then
445594
         # option, since /proc/cpuinfo will not contain the QEMU
445594
         # string. QEMU 2.10 added a new CPUID leaf, so this
445594
         # problem only triggered for older QEMU
445594
-        if grep -q 'QEMU' "${root}/proc/cpuinfo"; then
445594
+        if have_cpuinfo && grep -q 'QEMU' "${root}/proc/cpuinfo"; then
445594
             echo qemu
445594
         fi
445594
     fi
445594
-- 
a03d84
2.32.0
445594