summaryrefslogtreecommitdiffstats
path: root/sys-utils/fstrim.service.in
diff options
context:
space:
mode:
authorKarel Zak2018-08-08 11:35:58 +0200
committerKarel Zak2018-08-08 11:35:58 +0200
commit0d73ea8bf96b036cc12fae6865158c936705238d (patch)
tree252bafbed379b61ce84e97603eebda9c715350cc /sys-utils/fstrim.service.in
parentsetarch: make <arch> optional (diff)
downloadkernel-qcow2-util-linux-0d73ea8bf96b036cc12fae6865158c936705238d.tar.gz
kernel-qcow2-util-linux-0d73ea8bf96b036cc12fae6865158c936705238d.tar.xz
kernel-qcow2-util-linux-0d73ea8bf96b036cc12fae6865158c936705238d.zip
fstrim: update .service to follow /etc/fstab
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>
Diffstat (limited to 'sys-utils/fstrim.service.in')
-rw-r--r--sys-utils/fstrim.service.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/fstrim.service.in b/sys-utils/fstrim.service.in
index 457dfcf63..d70367eea 100644
--- a/sys-utils/fstrim.service.in
+++ b/sys-utils/fstrim.service.in
@@ -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