Advertise supported qubes-services
List everything that can be enabled/disabled with qvm-service. QubesOS/qubes-issues#4402
This commit is contained in:
parent
d285cbf349
commit
18dde5e877
@ -13,3 +13,34 @@ if systemctl -q is-enabled qubes-firewall.service 2>/dev/null; then
|
||||
else
|
||||
qvm-features-request qubes-firewall=0
|
||||
fi
|
||||
|
||||
qvm-features-request supported-service.meminfo-writer=1
|
||||
|
||||
# native services plugged into qubes-services with systemd drop-ins, list them
|
||||
# only when actual service is installed
|
||||
advertise_systemd_service() {
|
||||
qsrv=$1
|
||||
shift
|
||||
for unit in "$@"; do
|
||||
if systemctl -q is-enabled "$unit" 2>/dev/null; then
|
||||
qvm-features-request supported-service."$qsrv"=1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
advertise_systemd_service network-manager NetworkManager.service \
|
||||
network-manager.service
|
||||
advertise_systemd_service modem-manager ModemManager.service
|
||||
advertise_systemd_service avahi avahi-daemon.service
|
||||
advertise_systemd_service crond anacron.service cron.service crond.service
|
||||
advertise_systemd_service cups cups.service org.cups.cupsd.service
|
||||
advertise_systemd_service clocksync chronyd.service qubes-sync-time.service \
|
||||
systemd-timesyncd.service
|
||||
advertise_systemd_service exim4 exim4.service
|
||||
advertise_systemd_service getty@tty getty@tty.service
|
||||
advertise_systemd_service netfilter-persistent netfilter-persistent.service
|
||||
advertise_systemd_service qubes-update-check qubes-update-check.service
|
||||
advertise_systemd_service updates-proxy-setup qubes-updates-proxy-forwarder.socket
|
||||
advertise_systemd_service qubes-updates-proxy qubes-updates-proxy.service
|
||||
advertise_systemd_service qubes-firewall qubes-firewall.service
|
||||
advertise_systemd_service qubes-network qubes-network.service
|
||||
|
Loading…
Reference in New Issue
Block a user