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>
This commit is contained in:
parent
0554182555
commit
0d73ea8bf9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue