aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorBrad Davis <brd@FreeBSD.org>2021-08-09 15:47:03 +0000
committerBrad Davis <brd@FreeBSD.org>2021-08-09 15:54:08 +0000
commitfd17ea8c1849039c436f7192ca407db70561df03 (patch)
tree24df758d2f2f11a208b7967aa6cf7815a08bc423 /release
parent3808ab732e6a044cc101cf22027a0db2ac4ad58d (diff)
downloadsrc-fd17ea8c1849039c436f7192ca407db70561df03.tar.gz
src-fd17ea8c1849039c436f7192ca407db70561df03.zip
release: make pkg installs more robust
Currently pkg(8) will fail to install any package if one is missing, so make this a loop to prevent one missing package from preventing the rest from installing. Seen building an AWS AMI for aarch64 on main and ebsnvme-id is not available in the repo at the moment. Approved by: gjb MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'release')
-rw-r--r--release/tools/vmimage.subr6
1 files changed, 4 insertions, 2 deletions
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 6e0c1ea633e2..0e7edb97854a 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -131,8 +131,10 @@ vm_extra_install_packages() {
mount -t devfs devfs ${DESTDIR}/dev
chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \
/usr/sbin/pkg bootstrap -y
- chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \
- /usr/sbin/pkg install -y ${VM_EXTRA_PACKAGES}
+ for p in ${ASSUME_ALWAYS_YES}; do
+ chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \
+ /usr/sbin/pkg install -y ${p}
+ done
umount_loop ${DESTDIR}/dev
return 0