I've added a ticket: https://github.com/opnsense/core/issues/1376It will likely be the same cron job with the addition of a single parameter such as "PERFORM_RISKY_MAJOR_UPGRADE_IF_AVAILABLE". We should simply make clear this is a dangerous operation.
root@gw:~ # sudo --user=nobody /usr/local/sbin/configctl firmware auto-updateOK
Sep 1 05:40:03 lighttpd[37099]: (log.c.217) server startedSep 1 05:40:02 configd.py: generate template container OPNsense/WebGuiSep 1 05:40:01 configd.py: [f15ebc76-1a80-4261-8cf8-dd59866b1adc] generate template OPNsense/WebGuiSep 1 05:40:01 lighttpd[98929]: (server.c.1828) server stopped by UID = 0 PID = 36244Sep 1 05:40:00 configd.py: [dbd634a1-c328-40c3-9ad0-e1b64b00eb3b] attempting automatic firmware update
To be honest, we do not wish to document this particular feature because it is a support nightmare.Reading the code or searching the forum is ok to get the proper context here. Code that does exist but is not documented could also be subject to change so documenting it "permanently" will let users thing we broke something if we want to change it / replace it.We're working on another feature soon for "scheduled" updates which will be self-explanatory in the firmware settings section:https://github.com/opnsense/core/issues/1798
That being said, documentation grows, we're likely going to release the sources for 18.1 if all goes well as well. Hopefully receive a bit of help from the community, too.