svn commit: r358303 - stable/12/release/tools
Colin Percival
cperciva at FreeBSD.org
Tue Feb 25 00:37:14 UTC 2020
Author: cperciva
Date: Tue Feb 25 00:37:13 2020
New Revision: 358303
URL: https://svnweb.freebsd.org/changeset/base/358303
Log:
MFC r357750: Mount /dev while deinstalling pkg inside EC2 AMIs.
Modified:
stable/12/release/tools/ec2.conf
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/release/tools/ec2.conf
==============================================================================
--- stable/12/release/tools/ec2.conf Tue Feb 25 00:36:16 2020 (r358302)
+++ stable/12/release/tools/ec2.conf Tue Feb 25 00:37:13 2020 (r358303)
@@ -40,8 +40,10 @@ 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.
+ mount -t devfs devfs ${DESTDIR}/dev
chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \
/usr/sbin/pkg delete -f -y pkg
+ umount ${DESTDIR}/dev
rm ${DESTDIR}/var/db/pkg/repo-*.sqlite
# The size of the EC2 root disk can be configured at instance launch
More information about the svn-src-stable-12
mailing list