generate-ldif: Don't miss detect deb11 as VM

This commit is contained in:
Ludovic Poujol 2021-11-22 17:40:49 +01:00
parent a35139fcee
commit 82694ef5e9

View file

@ -31,7 +31,7 @@ computerKernel=$(uname -r)
HardwareSerial=$(dmidecode -s system-serial-number | grep -v '^#')
type="baremetal"
lscpu | grep -q KVM && type="kvm"
lscpu | grep "Hypervisor vendor:" | grep -q KVM && type="kvm"
lscpu | grep -q Oracle && type="virtualbox"
if [ "$type" = "kvm" ]; then