@dexter yep, in an OCI jail, this is sufficient to build:
- world & kernel
- base system packages
- OCI containers
I will turn this into a post in the near future, and see if my list of unnecessary packages is indeed correct.
## gimme container
doas podman run -it --rm \
--volume /tmp:/usr/obj \
--volume /usr/src:/usr/src \
ghcr.io/freebsd/freebsd-toolchain:15.0 /bin/sh
## gimme build
#!/bin/sh -eu
umask 0022
NCPU=3.0
NOW=$(date -u +%Y%m%d-%H%M)
QUIET=' -s'
time make TARGET_ARCH=amd64 TARGET=amd64 -j${NCPU} buildworld ${QUIET}
echo DONE BW
time make TARGET_ARCH=amd64 TARGET=amd64 -j${NCPU} buildkernel ${QUIET}
echo DONE BK
PACKAGER="time make TARGET_ARCH=amd64 TARGET=amd64 -j${NCPU}"
${PACKAGER} update-packages ${QUIET}
echo DONE PKG
cd release && \
time make TARGET_ARCH=amd64 TARGET=amd64 WITH_OCIIMAGES=yes ${QUIET} oci-release
echo DONE OCI
echo DONE ALL