Commit c7da0828 authored by Michael Shigorin's avatar Michael Shigorin

vmguest: learn to disable useless services under VMs

This has long been a TODO item but an elegant solution just didn't come until the night before starterkits... some services (mostly those operating on real hardware) do not fit virtual environments at all, won't even start.
parent 92ff0b77
#!/bin/sh
# disable services that are known to be useless under VMs
# TODO: un-hardwire the list?
NOVM_SERVICES="cpufreq-simple powertop smartd"
cat >> /usr/share/install2/postinstall.d/50-vmguest-noservices.sh << EOF
#!/bin/sh
if grep -qE '(101300b8)|(80eebeef)|(14ad0405)' /proc/bus/pci/devices; then
for i in $NOVM_SERVICES; do
echo "\$i" >> /usr/share/install2/services-off
done
fi
EOF
chmod +x /usr/share/install2/postinstall.d/50-vmguest-noservices.sh
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