aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--release/tools/ec2.conf2
-rw-r--r--release/tools/vagrant.conf2
2 files changed, 2 insertions, 2 deletions
diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 86706e21513c..2776331d9905 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -45,7 +45,7 @@ vm_extra_pre_umount() {
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
+ rm -r ${DESTDIR}/var/db/pkg/repos/FreeBSD
# The size of the EC2 root disk can be configured at instance launch
# time; expand our filesystem to fill the disk.
diff --git a/release/tools/vagrant.conf b/release/tools/vagrant.conf
index 5a4aa7d3ba79..2735ad2974cb 100644
--- a/release/tools/vagrant.conf
+++ b/release/tools/vagrant.conf
@@ -20,7 +20,7 @@ vagrant_common () {
# them from the image allows it to boot faster.
env ASSUME_ALWAYS_YES=yes pkg -c ${DESTDIR} clean -y -a
env ASSUME_ALWAYS_YES=yes pkg -c ${DESTDIR} delete -f -y pkg
- rm ${DESTDIR}/var/db/pkg/repo-*.sqlite
+ rm -r ${DESTDIR}/var/db/pkg/repos/FreeBSD
# Vagrant instances use DHCP to get their network configuration.
echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf