generate-ldif: Don't miss detect deb11 as VM
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
a35139fcee
commit
82694ef5e9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue