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

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