From: Jasper Lievisse Adriaanse Date: Thu, 10 Aug 2017 07:44:01 +0000 (+0100) Subject: Missing have_cpuinfo check. X-Git-Tag: v1.19~12 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=eefc1e7e3dd8fb422baf0f13aec1df9880541b83;p=virt-what.git Missing have_cpuinfo check. --- diff --git a/virt-what.in b/virt-what.in index 8c27b11..9050035 100644 --- a/virt-what.in +++ b/virt-what.in @@ -308,7 +308,7 @@ if ! "$skip_qemu_kvm"; then # option, since /proc/cpuinfo will not contain the QEMU # string. QEMU 2.10 added a new CPUID leaf, so this # problem only triggered for older QEMU - if grep -q 'QEMU' "${root}/proc/cpuinfo"; then + if have_cpuinfo && grep -q 'QEMU' "${root}/proc/cpuinfo"; then echo qemu fi fi