git: 1c9c1a64b240 - stable/15 - vmimage.subr: Add ability to install src in VM image
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Jul 2026 14:17:35 UTC
The branch stable/15 has been updated by kgalazka:
URL: https://cgit.FreeBSD.org/src/commit/?id=1c9c1a64b240453eb6ecb9073780f7153d604355
commit 1c9c1a64b240453eb6ecb9073780f7153d604355
Author: Krzysztof Galazka <kgalazka@FreeBSD.org>
AuthorDate: 2026-06-12 18:21:14 +0000
Commit: Krzysztof Galazka <kgalazka@FreeBSD.org>
CommitDate: 2026-07-10 14:16:42 +0000
vmimage.subr: Add ability to install src in VM image
In some cases having a src tree in a VM image is convenient
for development or debugging. Add a WITH_SRC variable,
which, when set, will cause the vm-release target to include
FreeBSD-set-src in the list of packages installed in an image.
Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Sponsored by: Intel Corporation
Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D57143
(cherry picked from commit 4ea4116f8d2069194563c8692c1f28d88c319ca8)
---
release/tools/vmimage.subr | 1 +
1 file changed, 1 insertion(+)
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 56acbc359936..462f0653f8a4 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -81,6 +81,7 @@ vm_base_packages_list() {
echo FreeBSD-set-lib32
[ -z "${WITHOUT_DEBUG_FILES}" ] && echo FreeBSD-set-lib32-dbg
esac
+ [ -n "${WITH_SRC}" ] && echo FreeBSD-set-src
echo FreeBSD-set-tests
# Also install pkg, since systems with a packaged base system should
# have the tools to upgrade themselves.