Skip to content
Snippets Groups Projects
Commit 6088b585 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

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

This is to prevent trying to trim read-only LVM snapshots.
parent 02739841
No related branches found
No related tags found
1 merge request!20basic-system: run fstrim only on file systems listed in fstab
Pipeline #4016 passed
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment