aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2026-01-24 20:12:14 +0000
committerColin Percival <cperciva@FreeBSD.org>2026-01-27 23:15:40 +0000
commitc8d759230a0e4449615b9185f2d86969f3792ba2 (patch)
treed60666993e944167f010a198305ae7b7975f51b2
parent5626e81f1a43f507023a8edd291f02547fe955de (diff)
vmimage.subr: Install pkg on pkgbase images
When building VM and Cloud images with a packaged base system, install the pkg package; this makes it possible for the base system to be updated without installing pkg from the FreeBSD-ports repository. Sponsored by: Amazon (cherry picked from commit f0ecf357aad984ac3b175f41027baac06d886f16)
-rw-r--r--release/tools/vmimage.subr3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 0ca9ba267ce0..f7fc9906c049 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -84,6 +84,9 @@ vm_base_packages_list() {
echo FreeBSD-set-lib32-dbg
esac
echo FreeBSD-set-tests
+ # Also install pkg, since systems with a packaged base system should
+ # have the tools to upgrade themselves.
+ echo pkg
}
vm_extra_filter_base_packages() {