Blame SOURCES/0021-Fix-incorrect-detection-of-MS-Surfacebook-2-as-a-vir.patch

e10a2d
From 71ef45e9543278e9920e449b71e0da269662ebc9 Mon Sep 17 00:00:00 2001
e10a2d
From: willem van de velde <williamvdvelde@gmail.com>
e10a2d
Date: Tue, 22 Oct 2019 11:58:01 +0100
08d0b2
Subject: [PATCH 21/25] Fix incorrect detection of MS Surfacebook 2 as a
e10a2d
 virtual machine.
e10a2d
e10a2d
---
e10a2d
 virt-what.in | 3 ++-
e10a2d
 1 file changed, 2 insertions(+), 1 deletion(-)
e10a2d
e10a2d
diff --git a/virt-what.in b/virt-what.in
e10a2d
index 9eafa05..a61ce91 100644
e10a2d
--- a/virt-what.in
e10a2d
+++ b/virt-what.in
e10a2d
@@ -132,7 +132,8 @@ fi
e10a2d
 # The negative check for cpuid is to distinguish this from Hyper-V
e10a2d
 # which also has the same manufacturer string in the SM-BIOS data.
e10a2d
 if [ "$cpuid" != "Microsoft Hv" ] &&
e10a2d
-    echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation'; then
e10a2d
+    echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation' &&
e10a2d
+    echo "$dmi" | grep -q 'Product Name: Virtual Machine'; then
e10a2d
     echo virtualpc
e10a2d
 fi
e10a2d
 
e10a2d
-- 
08d0b2
2.18.4
e10a2d