This is a shell script to make recovery as recoverable as
possible, now with a clear license and the ability to apply
inline or reboot for a clean configuration cycle.
if the tty is closed while the script is running,
it would previously go in an infinite loop trying
to read from and write to the now-defunct tty.
fixes: https://github.com/opnsense/core/issues/1240
o Recovery console is weird, just use CTRL-C from anywhere
o Simplify the early installer invoke by probing for keypress
o Display a brief message when installer+SSH is active
Prefer LiveCD boot during install media boot, then
set up an extra user for installation. This user
shall be reached via console or SSH soon enough for
a sort of remote install experience.
PR: https://forum.opnsense.org/index.php?topic=3403
Inspired by: DragonFlyBSD (and we're using its installer anyway!)
* Boot into the installer by default; it can still be aborted.
* Remove the dysfunct rescue installer. The normal installer
now has a better rescue tool called "Import configuration".
* Move and rework the installer launcher as rc.installer. It
can be called at any time if needed.
We can dash out jails, use them for development or production
environments even. Sure, they may not support some priviledged
operation, but keeping weird glue around that is probably not
in all the places it should be is weird.
Make "src" the implicit "/usr/local" so that nobody can
sneak in weird files in the base file system or potentially
overwrite them.
This is the last time, I swear... :)