From bc7e8ce561c2b1ec5536bd7a3e77226dbeab538d Mon Sep 17 00:00:00 2001 From: David Duncan Date: Thu, 8 Jul 2021 16:41:13 -0700 Subject: [PATCH] Add the fstrim to post and avoid 40GB Vagrant files Fixes:https://pagure.io/cloud-sig/issue/340 Signed-off-by: David Duncan --- fedora-cloud-base.ks | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks index fbc132f..6ff9c89 100644 --- a/fedora-cloud-base.ks +++ b/fedora-cloud-base.ks @@ -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 ############################################