Images are clamped to just under 4G with a single slice
in a hybrid manner of vm/serial images. This should
provide wide compatibility and fit any 4G card, and can
then be expanded to whatever we really have using growfs.
Smaller images are possible too, but not recommended due
to the fact that firmware upgrades need to be downloaded
and extracted. We could make 2G the new default, but
future size requirements and a steady 4G image seem like
a more favourable goal in the long term.
This will not taint the build system except for the final
sets and image dirs. Helps in keeping the build system
clean and that it's easier to inspect the build step.
While there, expand chroot to take a subdir argument as
some build steps need the STAGEDIR root for more than a
single purpose.
Building has gotten pretty complicated with the introduction
of opnsense-devel pacakges, which will be further complicated
by doing opnsense-stable soon enough...
This needs more smarts, but for now the README works again.
This only affects image builds.
common.sh eats up the arguments via getopts, but on return to the parent
script the arguments are restored. To adapt the argument scrubbing to
the actual number of arguments eaten we'll sprinkle a bit of arcane shell
magic around and hope for the best.
Builds an image that loads in bhyve, but might still need some more
tweaking. We don't have two slices. I am not sure if they'll be
back soon. Not sure if these images are ready for release as well,
but at least now we have the script for providing initial snapshots.