Skip to content
Snippets Groups Projects

basic-system: run fstrim only on file systems listed in fstab

Merged Thomas Schneider requested to merge th/fstrim-fstab into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
#!/bin/sh
#!/bin/sh
set -e
set -e
if command -v fstrim >/dev/null; then
if command -v fstrim >/dev/null; then
fstrim -a
fstrim -A
fi
fi
Loading