From a422089368c6d336c78ce1edeebf61a23a6ced09 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 16 Dec 2019 17:44:15 +0100 Subject: [PATCH] 2.34-4: add missing patch --- fstrim-fix-systemd-service-protection.patch | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 fstrim-fix-systemd-service-protection.patch diff --git a/fstrim-fix-systemd-service-protection.patch b/fstrim-fix-systemd-service-protection.patch new file mode 100644 index 0000000..4bcd1cc --- /dev/null +++ b/fstrim-fix-systemd-service-protection.patch @@ -0,0 +1,30 @@ +From c64d452b3eb85fe55e238144082247b05cc143ea Mon Sep 17 00:00:00 2001 +From: Karel Zak +Date: Mon, 22 Jul 2019 11:10:30 +0200 +Subject: [PATCH] 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 +-- +2.21.0 +