Remove caches before creating the image

This commit is contained in:
Jørn Åne de Jong 2022-05-01 15:58:09 +02:00 committed by Nico Schottelius
parent eaa5ed671d
commit c4b91aa64a

View file

@ -117,6 +117,7 @@ then
--currently-running "$RELEASE" \
--not-running-from-cron -F \
fetch install
rm -rf /mnt/var/db/freebsd-update/*
fi
env ASSUME_ALWAYS_YES=YES pkg -c /mnt bootstrap -f
@ -127,6 +128,7 @@ fetch -m -o /mnt/one-context.txz "$ONE_CONTEXT_PKG_URL"
# It would be useful to see if there is an alternative to OpenNebula without so many dependencies,
# so we can run on FreeBSD base, and avoid breaking OpenNebula when the admin removes a dependency.
env ASSUME_ALWAYS_YES=YES pkg -c /mnt install sudo bash curl base64 ruby open-vm-tools-nox11 gawk virt-what one-context.txz
env ASSUME_ALWAYS_YES=YES pkg -c /mnt clean --all
rm /mnt/one-context.txz
cleanup