]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/virt.c
virt: Fix the detection for Hyper-V VMs
authorBoqun Feng <boqun.feng@gmail.com>
Tue, 23 Nov 2021 07:09:26 +0000 (15:09 +0800)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Nov 2021 12:23:33 +0000 (13:23 +0100)
commit76eec0649936d9ae2f9087769f463feaf0cf5cb4
treef3f0f772dad232c57127591b0a2a8c4f58701e54
parent244cab4a651d4a5b5d9f0275ef59b8273418ee51
virt: Fix the detection for Hyper-V VMs

Use product_version instead of product_name in DMI table and the string
"Hyper-V" to avoid misdetection.

Fixes: #21468
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
src/basic/virt.c