See instructions for methods to install pkgbase in a chroot(8) environment and how to handle the /dev/null issue:I runpkg --rootdir /compat/freebsd ins FreeBSD-set-minimal pkgand chroot /compat/freebsd. But in the chroot, the pkg is working, it will say Cannot open dev/null.
Before chroot(8) make sure host/etc/resolv.conf is copied to /diskless/etc, and host/dev is mount_nullfs(8) to diskless/dev.I need to figure out how to install a package onto a diskless image. Would chroot(8) do the trick or is it more involved?
This will do: assuming /diskless/15.0-RELEASE root directory...I currently fill out the base system by tar(1) extract of base.txz and kernel.txz. That works well but things are changing with the coming 15.1-RELEASE so I also need to learn how to do this step in pkgbase.
FreeBSD-base: is set to enabled: yes. env BSDINSTALL_CHROOT=/diskless/15.0-RELEASE bsdinstall pkgbase