You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
465 B

3 years ago
#!/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