Remove caches before creating the image
This commit is contained in:
parent
eaa5ed671d
commit
c4b91aa64a
1 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,7 @@ then
|
||||||
--currently-running "$RELEASE" \
|
--currently-running "$RELEASE" \
|
||||||
--not-running-from-cron -F \
|
--not-running-from-cron -F \
|
||||||
fetch install
|
fetch install
|
||||||
|
rm -rf /mnt/var/db/freebsd-update/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
env ASSUME_ALWAYS_YES=YES pkg -c /mnt bootstrap -f
|
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,
|
# 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.
|
# 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 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
|
rm /mnt/one-context.txz
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
Loading…
Add table
Reference in a new issue