Files
qt5/coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-fstrim_timer.sh
Heikki Halmet 3240e1713d 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>
(cherry picked from commit 031bc19ae6)
Reviewed-by: Toni Saario <toni.saario@qt.io>
(cherry picked from commit 11cd0f1d75)
2020-09-24 11:26:13 +03:00

8 lines
188 B
Bash

#!/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