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

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