Skip to content

Commit 08b497d

Browse files
committed
vmimage.subr: Support NO_ROOT pkgbase
We need to tell pkg to record files in METALOG; otherwise when we create the VM image it's almost empty. MFC after: 6 hours Sponsored by: https://www.patreon.com/cperciva
1 parent f32ffd1 commit 08b497d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

release/tools/vmimage.subr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ vm_install_base() {
9595
pkg_cmd="pkg --rootdir ${DESTDIR} --repo-conf-dir ${PKGBASE_REPO_DIR}
9696
-o ASSUME_ALWAYS_YES=yes -o IGNORE_OSVERSION=yes
9797
-o ABI=${PKG_ABI} -o INSTALL_AS_USER=yes "
98+
if -n "${NO_ROOT}" ]; then
99+
pkg_cmd="$pkg_cmd -o METALOG=METALOG"
100+
fi
98101
$pkg_cmd update
99102
selected=$($pkg_cmd rquery -U -r FreeBSD-base %n | \
100103
vm_filter_base_packages | vm_extra_filter_base_packages)

0 commit comments

Comments
 (0)