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-24 20:18:35 +0000
commitf0ecf357aad984ac3b175f41027baac06d886f16 (patch)
treed4b6f064bbb150683debd186710e5021a9f86f6f
parentec2b3d786b236ac64ff5d3e28e8d05e2293896d5 (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
-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() {