diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2025-10-03 07:23:43 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2025-10-03 07:25:05 +0000 |
| commit | 08b497dc6c4da23be83f7cd51edff07f09d63fd6 (patch) | |
| tree | dbce752bbd0b5c32af8b0616e442a5638ca32c32 | |
| parent | f32ffd11b54792d7bdd37b6dfc0f904a561b879c (diff) | |
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
| -rw-r--r-- | release/tools/vmimage.subr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr index fba09d532b4a..27cca78be6e3 100644 --- a/release/tools/vmimage.subr +++ b/release/tools/vmimage.subr @@ -95,6 +95,9 @@ vm_install_base() { pkg_cmd="pkg --rootdir ${DESTDIR} --repo-conf-dir ${PKGBASE_REPO_DIR} -o ASSUME_ALWAYS_YES=yes -o IGNORE_OSVERSION=yes -o ABI=${PKG_ABI} -o INSTALL_AS_USER=yes " + if -n "${NO_ROOT}" ]; then + pkg_cmd="$pkg_cmd -o METALOG=METALOG" + fi $pkg_cmd update selected=$($pkg_cmd rquery -U -r FreeBSD-base %n | \ vm_filter_base_packages | vm_extra_filter_base_packages) |
