Skip to content

Release 0.2.0-alpha.3

A release for one fault, out ahead of the next gathered one: after an OPNsense update that brings a new kernel, an appliance that restarted on its own - a power cut, a sudden restart, an update that rebooted by itself - came up on the new kernel with a driver module built for the old one, and so without its front ports and its WAN, unreachable from them (#881). The fall-back to kernel.old was armed only at an orderly reboot. Now, at boot, a module the new kernel refuses sends the next boot to kernel.old and restarts once; the ports come back on kernel.old, the module is built again for the new kernel, and an orderly reboot takes the new kernel with the driver loaded. A mark holds a second try off for an hour. When the new kernel's sources cannot be fetched, the follower says why.

With it, a signed library of prebuilt modules: npuep, octep and fchemmc are built on GitHub for every OPNsense kernel set of 26.7 and the newest of 26.1, from the driver sources of the newest published release, each archive with GitHub's build provenance, and the list is signed with the release key. An appliance takes the module of its own kernel from it only when the signature, the archive's size and SHA-256, its members, the digest of the driver sources installed on it and every stamp all check; anything else, it builds the module itself as before. The Updates page says where the module came from. The site, the Updates page and the installer leave the library's releases out. The contributors' guide gains the house style, and the package description the official source and its notice.

Tried on the second XGS 3300 (vendor version 22, OPNsense 26.7.10, kernel p7, kernel.old p6), the change's files over 0.2.0-alpha.2:

  • a sudden restart with the module built for p6 and /boot/kernel on p7: the boot on p7 refused the module, sent the next boot to kernel.old and restarted once; the boot on p6 came up with octep and the same front ports up; the follower built the module for p7, and an orderly reboot came up on p7 with octep;
  • a library signed by a test key, carried on the appliance: refused with the release keys alone and with a signature changed by one byte; with the test key trusted, of two entries for the kernel the one built from the installed sources was taken, and the Updates page shows it;
  • a bring-up run by hand on a refused module restarts nothing. On the XGS 136 (vendor version 21), the digest of the installed driver sources equals the release's, and it took the prebuilt path too.

Not tried before this release:

  • the library's workflow, its build provenance and its signing on GitHub: its first run starts when this release is published; until a library is signed and published, every appliance builds its module itself, as before;
  • the fall-back after a sudden restart on the XGS 136;
  • a system on eMMC (fchemmc's library path);
  • no A/B run: the connection path did not change.

Improvements and additions

  • CONTRIBUTING: the house style; pkg-descr: the official source and its notice (#1272)
  • Fall back to kernel.old at boot; a signed module library for every kernel (#1273)

The release, with its files: v0.2.0-alpha.3 on GitHub.

Discussion

The discussion of this page is held in the project's GitHub Discussions. Showing it here loads giscus from giscus.app and GitHub, and writing in it needs a GitHub account - what that means.