Ensure ASSUME_ALWAYS_YES is set when deleting pkg(8) from the

DESTDIR, otherwise it can get stuck in ttyin.

This means no 10-STABLE EC2 images this week.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2015-06-24 21:30:35 +00:00
parent c3c85727d0
commit 67076e4d58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284780

View File

@ -32,7 +32,7 @@ vm_extra_pre_umount() {
# catalogue and install or update pkg when the instance first
# launches, so these files would just be replaced anyway; removing
# them from the image allows it to boot faster.
pkg -c ${DESTDIR} delete -f -y pkg
env ASSUME_ALWAYS_YES=yes pkg -c ${DESTDIR} delete -f -y pkg
rm ${DESTDIR}/var/db/pkg/repo-*.sqlite
# The size of the EC2 root disk can be configured at instance launch