From 5067f35853f3ab0b02cc9c15760b597eb2b78127 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 11 Mar 2023 18:05:20 +0000 Subject: [PATCH] systemd: copy systemd system files into etc --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2fc6f2c..c5a8d99 100644 --- a/Makefile +++ b/Makefile @@ -117,8 +117,9 @@ ssh: ln -sfT $(APATH)/ssh/config ~/.ssh/config .PHONY: ssh +# copy system files, do not link, it doesn't work if home is encrypted /etc/systemd/system/%: systemd/system/% - sudo ln -s $(APATH)/$< $@ + sudo cp $(APATH)/$< $@ systemd_system_units := $(patsubst %,/etc/%,$(wildcard systemd/system/*)) systemd: $(XDG_CONFIG_HOME) $(systemd_system_units) -- 2.48.1