On Wed, 29 Oct 2014 13:32:18 -0400 Joey Hess <jo...@debian.org> wrote:
> There is no reason for fstrim to be run by a systemd timer in Debian.
> We have cron.weekly. So, fixing #732054 will fix this bug too.
>

I have attached a patch that provides a minimal cron job, based on the systemd timer and service.

I would appreciate if this was included in the next upload to fix these two bugs.

Thank you,
--
Cameron Norman
diff --git a/debian/util-linux.fstrim.cron b/debian/util-linux.fstrim.cron
new file mode 100755
index 0000000..7f17eb8
--- /dev/null
+++ b/debian/util-linux.fstrim.cron
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec fstrim -a
diff --git a/debian/util-linux.install b/debian/util-linux.install
index 6e27066..a5a136c 100755
--- a/debian/util-linux.install
+++ b/debian/util-linux.install
@@ -10,8 +10,7 @@ debian/tmp/usr/bin/rename => /usr/bin/rename.ul
 [linux-any] sbin/mkswap
 [!linux-any] debian/tmp/sbin/mkswap => /sbin/mkswap.linux
 # weekly fstrim only available on linux
-[linux-any] lib/systemd/system/fstrim.timer
-[linux-any] lib/systemd/system/fstrim.service
+[linux-any] debian/util-linux.fstrim.cron => /etc/cron.weekly/fstrim
 bin/more
 sbin/agetty
 sbin/blkid

Reply via email to