Provisioning: Disable fstrim.timer

fstrim scans the filesystem and sends 'UNMAP' commands for each
unused block it finds. Let's disable it so it won't cause unexpected
situations.

Task-number: QTQAINFRA-3919
Change-Id: I20c97441fd47728a3063ae50f87fe6347186bdbd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Heikki Halmet
2020-09-15 14:21:06 +03:00
committed by Toni Saario
parent b43c199d4a
commit 031bc19ae6

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -ex
# This will disable fstrim. The fstrim.timer is scheduled to activate the fstrim.service
sudo systemctl stop fstrim.timer
sudo systemctl disable fstrim.timer