]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fstrim: update .service to follow /etc/fstab
authorKarel Zak <kzak@redhat.com>
Wed, 8 Aug 2018 09:35:58 +0000 (11:35 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Aug 2018 09:35:58 +0000 (11:35 +0200)
Replace -a with -A to discard mounted filesystems from /etc/fstab. The
original -a forces fstrim to try to discard all filesystems, including
for example manually mounted removable media.

It seems better for widely used .service unit to follow /etc/fstab.

Addresses: https://github.com/karelzak/util-linux/issues/673
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/fstrim.service.in

index 457dfcf63fc3c700d157744ee1e73a6213c71243..d70367eeac0884c539818c6275af288d039cccea 100644 (file)
@@ -1,6 +1,6 @@
 [Unit]
-Description=Discard unused blocks
+Description=Discard unused blocks on filesystems from /etc/fstab
 
 [Service]
 Type=oneshot
-ExecStart=@sbindir@/fstrim -av
+ExecStart=@sbindir@/fstrim -Av