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

View File

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