This also has an issue with the post-update rc.syshook if
the wwwonly is not found. But: after a boot it is ensured
and should not be missing thereafter.
The package post-install would ensure it previously, but
we don't want to also chain the php bootstrap through this
just to get the call stack in the right order.
May need further adjusting but also no need to rush this
into a stable release at the moment.
Now that we have metadata injection at build time read it instead
of its auxiliary files. Allow live-mount to snoop the metadata and
afterwards we can start to marry the version and firmware-product
file.
Last puzzle piece will be a tool called "opnsense-version" to read
the JSON metadata and return it in a piecemeal fashion of a part
of the system requires that info, especially from the shell.
We have successfully decoupled rc.installer from other components
so now we can merge both utilities. We use opnsense-installer for
user support, which is easier to invoke and remember.
The new package targets have no drawbacks compared to auto live
mount, but the latter has proven difficult and does not match the
normal boot scenario and could potentially panic due to unionfs
being broken beyond repair (kib@'s words in spirit, not mine).
Discussed with: @adschellevis