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.
This commit is contained in:
kszaq 2018-01-06 21:42:29 +01:00
parent bedb593b0f
commit ac21064387

View File

@ -1,9 +1,9 @@
[Unit] [Unit]
Description=fstrim storage partition Description=Apply TRIM on all trimmable mounts
[Service] [Service]
Type=simple Type=simple
ExecStart=[ -f /flash/kernel.img ] || /usr/sbin/fstrim /storage ExecStart=-/usr/sbin/fstrim -a -v
[Install] [Install]
WantedBy=basic.target WantedBy=basic.target