From 6088b58553bbcf6d32fabc2516429fda3d6f77d7 Mon Sep 17 00:00:00 2001 From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de> Date: Tue, 3 May 2022 20:46:00 +0200 Subject: [PATCH] basic-system: run fstrim only on file systems listed in fstab This is to prevent trying to trim read-only LVM snapshots. --- basic-system/files/fstrim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic-system/files/fstrim b/basic-system/files/fstrim index b1816b2..799586d 100755 --- a/basic-system/files/fstrim +++ b/basic-system/files/fstrim @@ -1,5 +1,5 @@ #!/bin/sh set -e if command -v fstrim >/dev/null; then - fstrim -a + fstrim -A fi -- GitLab