Commit 3801cd47 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: detect kvm without systemd

parent b3931304
......@@ -709,6 +709,10 @@ get_virt()
echo "xen" && return
fi
if lscpu | grep "Hypervisor vendor:" | grep -q "KVM" ; then
echo "kvm" && return
fi
echo "(unknown)"
# TODO: check for openvz
}
......
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