dropins: make current systemd dropins specific to systemd-system in order to introduce dropins for systemd-user

This commit is contained in:
Olivier MEDOC 2015-11-07 13:25:21 +01:00
parent 4b5332081e
commit ce4725523f

View File

@ -45,34 +45,35 @@ all:
make -C qubes-rpc make -C qubes-rpc
# Dropin Directory # Dropin Directory
DROPIN_DIR ?= "lib/systemd/system" DROPIN_DIR ?= "lib/systemd"
# Fedora Dropins # Fedora System Dropins
DROPINS := chronyd.service crond.service cups.service cups.path cups.socket ModemManager.service SYSTEM_DROPINS := chronyd.service crond.service cups.service cups.path cups.socket ModemManager.service
DROPINS += NetworkManager.service NetworkManager-wait-online.service ntpd.service getty@tty.service SYSTEM_DROPINS += NetworkManager.service NetworkManager-wait-online.service ntpd.service getty@tty.service
DROPINS += tmp.mount SYSTEM_DROPINS += tmp.mount
DROPINS += org.cups.cupsd.service org.cups.cupsd.path org.cups.cupsd.socket SYSTEM_DROPINS += org.cups.cupsd.service org.cups.cupsd.path org.cups.cupsd.socket
# Debian Dropins # Debian Dropins
ifeq ($(shell lsb_release -is), Debian) ifeq ($(shell lsb_release -is), Debian)
# Don't have 'ntpd' in Debian # Don't have 'ntpd' in Debian
DROPINS := $(filter-out ntpd.service, $(DROPINS)) SYSTEM_DROPINS := $(filter-out ntpd.service, $(SYSTEM_DROPINS))
# 'crond.service' is named 'cron.service in Debian # 'crond.service' is named 'cron.service in Debian
DROPINS := $(strip $(patsubst crond.service, cron.service, $(DROPINS))) SYSTEM_DROPINS := $(strip $(patsubst crond.service, cron.service, $(SYSTEM_DROPINS)))
# Wheezy Dropins # Wheezy System Dropins
# Disable sysinit 'network-manager.service' since systemd 'NetworkManager.service' is already installed # Disable sysinit 'network-manager.service' since systemd 'NetworkManager.service' is already installed
DROPINS += $(strip $(if $(filter wheezy, $(shell lsb_release -cs)), network-manager.service,)) SYSTEM_DROPINS += $(strip $(if $(filter wheezy, $(shell lsb_release -cs)), network-manager.service,))
# handled by qubes-iptables service now # handled by qubes-iptables service now
DROPINS += netfilter-persistent.service SYSTEM_DROPINS += netfilter-persistent.service
endif endif
install-systemd-dropins: install-systemd-dropins:
@for dropin in $(DROPINS); do \ # Install system dropins
install -d $(DESTDIR)/$(DROPIN_DIR)/$${dropin}.d ;\ @for dropin in $(SYSTEM_DROPINS); do \
install -m 0644 vm-systemd/$${dropin}.d/*.conf $(DESTDIR)/$(DROPIN_DIR)/$${dropin}.d/ ;\ install -d $(DESTDIR)/$(DROPIN_DIR)/system/$${dropin}.d ;\
install -m 0644 vm-systemd/$${dropin}.d/*.conf $(DESTDIR)/$(DROPIN_DIR)/system/$${dropin}.d/ ;\
done done
install-systemd: install-systemd: