Blame SOURCES/0001-Missing-have_cpuinfo-check.patch

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