Add the fstrim to post and avoid 40GB Vagrant files

Fixes:https://pagure.io/cloud-sig/issue/340

Signed-off-by: David Duncan <davdunc@amazon.com>
This commit is contained in:
David Duncan 2021-07-08 16:41:13 -07:00
parent 6a37d23859
commit bc7e8ce561
1 changed files with 3 additions and 0 deletions

View File

@ -135,5 +135,8 @@ rm -f /etc/NetworkManager/system-connections/*.nmconnection
# Clear machine-id on pre generated images
truncate -s 0 /etc/machine-id
# add fstrim -av to the post section until BZ#1971186 is resolved
fstrim -av
%end
##### end kickstart post ############################################