From c64d452b3eb85fe55e238144082247b05cc143ea Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 22 Jul 2019 11:10:30 +0200 Subject: fstrim: fix systemd service protection ProtectHome=yes makes /home inaccessible, but we need to open the directories (mountpoints) read-only. Addresses: https://github.com/karelzak/util-linux/issues/824 Signed-off-by: Karel Zak --- sys-utils/fstrim.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/fstrim.service.in b/sys-utils/fstrim.service.in index 516023ed8..2a8dc1d3a 100644 --- a/sys-utils/fstrim.service.in +++ b/sys-utils/fstrim.service.in @@ -6,7 +6,7 @@ Documentation=man:fstrim(8) Type=oneshot ExecStart=@sbindir@/fstrim --fstab --verbose --quiet ProtectSystem=strict -ProtectHome=yes +ProtectHome=read-only PrivateDevices=no PrivateNetwork=yes PrivateUsers=no -- cgit v1.2.3-55-g7522