From 237d10ef989fc7bb299708ea52e50e27d59e138b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 3 Jun 2017 14:03:38 -0300 Subject: Provision: development: TRIM filesystems --- share/provision/development | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'share') diff --git a/share/provision/development b/share/provision/development index 9153f64..a53abc7 100755 --- a/share/provision/development +++ b/share/provision/development @@ -68,3 +68,8 @@ if ! grep -q "GRUB_TIMEOUT=1" /etc/default/grub; then sudo sed -i -e 's|GRUB_TIMEOUT=5|GRUB_TIMEOUT=1|' /etc/default/grub sudo update-grub fi + +# Fstrim +# See https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files +sudo fstrim -av +sudo sync -- cgit v1.2.3