]> git.rmz.io Git - dotfiles.git/commitdiff
systemd: copy systemd system files into etc
authorSamir Benmendil <me@rmz.io>
Sat, 11 Mar 2023 18:05:20 +0000 (18:05 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 11 Mar 2023 18:05:20 +0000 (18:05 +0000)
Makefile

index 2fc6f2c98fd5868750c0376c9d3b571a8f767461..c5a8d99c5721277ff61731b03a033556e84b0662 100644 (file)
--- 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)