Commit ea6bae7b authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: hide missed lscpu

parent 20e579f7
......@@ -865,7 +865,7 @@ get_virt()
fi
# use util-linux
if LC_ALL=C a= lscpu | grep "Hypervisor vendor:" | grep -q "KVM" ; then
if LC_ALL=C a= lscpu 2>/dev/null | grep "Hypervisor vendor:" | grep -q "KVM" ; then
echo "kvm" && return
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment