git.annexia.org
/
virt-what.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0443f1
)
Fix incorrect detection of MS Surfacebook 2 as a virtual machine.
author
willem van de velde
<williamvdvelde@gmail.com>
Tue, 22 Oct 2019 10:58:01 +0000
(11:58 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 10 Dec 2019 12:49:28 +0000
(12:49 +0000)
virt-what.in
patch
|
blob
|
history
diff --git
a/virt-what.in
b/virt-what.in
index
9eafa05
..
a61ce91
100644
(file)
--- a/
virt-what.in
+++ b/
virt-what.in
@@
-132,7
+132,8
@@
fi
# The negative check for cpuid is to distinguish this from Hyper-V
# which also has the same manufacturer string in the SM-BIOS data.
if [ "$cpuid" != "Microsoft Hv" ] &&
- echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation'; then
+ echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation' &&
+ echo "$dmi" | grep -q 'Product Name: Virtual Machine'; then
echo virtualpc
fi