HomeFreeBSD

release: Pass optional VM_IMAGE_CONFIG to vm-image

Description

release: Pass optional VM_IMAGE_CONFIG to vm-image

make vm-image calls mk-vmimage.sh, which supports
-c CONFFILE. This file gets sourced before building the image.

One example of how to use it is to define
vm_extra_filter_base_packages() to filter the list of packages
installed into the VM image:

  1. vm-nodbg32.conf vm_extra_filter_base_packages() { grep -v -E '(-dbg|lib32)' }

    $ make VM_IMAGE_CONFIG=path/to/vm-nodbg32.conf \ VMFORMATS=raw \ -DWITH_VMIMAGES \ vm-image

Signed-off-by: Pat Maddox <pat@patmaddox.com>
Reviewed by: cperciva
(cherry picked from commit 93f482ab3e6b4577f13e85e216a50bdf3704dda3)

Details

Provenance
patmaddoxAuthored on Feb 6 2026, 7:50 AM
kevansCommitted on Apr 12 2026, 1:43 PM
Parents
rGf329d69b9176: tpm20: fix suspend/resume and entropy harvesting
Branches
Unknown
Tags
Unknown