-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: place user dropins in /usr/lib instead of /lib
On non-Fedora those are not equivalent. On Debian, user units in /lib are not supported Reported by @adrelanos Fixes QubesOS/qubes-issues#2644
- Loading branch information
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,8 @@ all: | |
make -C qubes-rpc | ||
|
||
# Dropin Directory | ||
DROPIN_DIR ?= "lib/systemd" | ||
SYSTEM_DROPIN_DIR ?= "lib/systemd/system" | ||
USER_DROPIN_DIR ?= "usr/lib/systemd/user" | ||
|
||
SYSTEM_DROPINS := chronyd.service crond.service cups.service cups.path cups.socket ModemManager.service | ||
SYSTEM_DROPINS += NetworkManager.service NetworkManager-wait-online.service ntpd.service [email protected] | ||
|
@@ -96,14 +97,14 @@ endif | |
install-systemd-dropins: | ||
# Install system dropins | ||
@for dropin in $(SYSTEM_DROPINS); do \ | ||
install -d $(DESTDIR)/$(DROPIN_DIR)/system/$${dropin}.d ;\ | ||
install -m 0644 vm-systemd/$${dropin}.d/*.conf $(DESTDIR)/$(DROPIN_DIR)/system/$${dropin}.d/ ;\ | ||
install -d $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d ;\ | ||
install -m 0644 vm-systemd/$${dropin}.d/*.conf $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d/ ;\ | ||
done | ||
|
||
# Install user dropins | ||
@for dropin in $(USER_DROPINS); do \ | ||
install -d $(DESTDIR)/$(DROPIN_DIR)/user/$${dropin}.d ;\ | ||
install -m 0644 vm-systemd/user/$${dropin}.d/*.conf $(DESTDIR)/$(DROPIN_DIR)/user/$${dropin}.d/ ;\ | ||
install -d $(DESTDIR)/$(USER_DROPIN_DIR)/$${dropin}.d ;\ | ||
install -m 0644 vm-systemd/user/$${dropin}.d/*.conf $(DESTDIR)/$(USER_DROPIN_DIR)/$${dropin}.d/ ;\ | ||
done | ||
|
||
install-init: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -655,8 +655,8 @@ The Qubes core startup configuration for SystemD init. | |
/lib/systemd/system/tor.service.d/30_qubes.conf | ||
/lib/systemd/system/[email protected]/30_qubes.conf | ||
/lib/systemd/system/tmp.mount.d/30_qubes.conf | ||
/lib/systemd/user/pulseaudio.service.d/30_qubes.conf | ||
/lib/systemd/user/pulseaudio.socket.d/30_qubes.conf | ||
/usr/lib/systemd/user/pulseaudio.service.d/30_qubes.conf | ||
/usr/lib/systemd/user/pulseaudio.socket.d/30_qubes.conf | ||
/usr/lib/tmpfiles.d/qubes-core-agent-linux.conf | ||
|
||
%post systemd | ||
|