Date: Tue, 25 Feb 2020 00:37:13 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r358303 - stable/12/release/tools Message-ID: <202002250037.01P0bDXj023383@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002250037.01P0bDXj023383>