From ac210643871d9d1ae2d7f211c9b497374b64e951 Mon Sep 17 00:00:00 2001 From: kszaq Date: Sat, 6 Jan 2018 21:42:29 +0100 Subject: [PATCH] projects/Amlogic: fstrim all trimmable mounts With fstrim from util-linux we can use one command to trim all trimmable mounts. Use it and simplify the service. --- .../Amlogic/filesystem/usr/lib/systemd/system/fstrim.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/Amlogic/filesystem/usr/lib/systemd/system/fstrim.service b/projects/Amlogic/filesystem/usr/lib/systemd/system/fstrim.service index 165a2a86e8..2910418483 100644 --- a/projects/Amlogic/filesystem/usr/lib/systemd/system/fstrim.service +++ b/projects/Amlogic/filesystem/usr/lib/systemd/system/fstrim.service @@ -1,9 +1,9 @@ [Unit] -Description=fstrim storage partition +Description=Apply TRIM on all trimmable mounts [Service] Type=simple -ExecStart=[ -f /flash/kernel.img ] || /usr/sbin/fstrim /storage +ExecStart=-/usr/sbin/fstrim -a -v [Install] WantedBy=basic.target