aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-06-03 14:03:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-06-03 14:03:38 -0300
commit237d10ef989fc7bb299708ea52e50e27d59e138b (patch)
tree55c87ce4224b9bf09b7111e0d8a4a66a0855b6f9 /share
parent14be54ae3b7f33a684d969bac74fe7aaf4c15100 (diff)
downloadkvmx-237d10ef989fc7bb299708ea52e50e27d59e138b.tar.gz
kvmx-237d10ef989fc7bb299708ea52e50e27d59e138b.tar.bz2
Provision: development: TRIM filesystems
Diffstat (limited to 'share')
-rwxr-xr-xshare/provision/development5
1 files changed, 5 insertions, 0 deletions
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