Commit e28bd59e authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

KVM check should be done against running kernel through /sys , not lsmod

parent 3d75416e
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<exec executable="bash" outputproperty="ENABLE_KVM_X86"> <exec executable="bash" outputproperty="ENABLE_KVM_X86">
<arg value="-c"/> <arg value="-c"/>
<arg value="if [ `lsmod | grep -c -E '(kvm_intel|kvm_amd)'` -gt 0 ] ; then echo -n '-enable-kvm' ; fi"/> <arg value="if [ `ls -1 /sys/module | grep -c -E '(kvm_intel|kvm_amd)'` -gt 0 ] ; then echo -n '-enable-kvm' ; fi"/>
</exec> </exec>
<target name="copy-to-secondary"> <target name="copy-to-secondary">
......
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