roadmap NOT-STARTED

908. The kernel is a package: jig installs it, the next boot runs it, and a failed boot rolls back

(Minted 2026-10-12 (UTC) by lane maintainer/foreign-programs-via-jig, under §297 (software reaches a nife system as a package jig installs from basalt's index, the kernel included). The number is provisional until the merge queue lands it; the title and slug are drafts.)

calef, 2026-10-12 (UTC): "We want to be able to update the kernel through packages."

Asked the same day whether aarch64 under QEMU boots uefi_loader through edk2 (a) or through U-Boot's bootefi (b), calef answered "a" (2026-10-12 UTC). aarch64 takes the UEFI path x86_64 takes under OVMF.

What already plans it

What is missing

  1. A kernel package. basalt builds one per architecture (milestone 909 (basalt composes the bootable image from its packages)).
  2. Installing it writes the inactive slot. jig install of a kernel package hands the bytes to the progenitor, which writes the slot and marks it a trial with tries, as 525's chooser reads them.
  3. The loader finds the active kernel. On x86_64 that is 525's chooser. On aarch64 and riscv64 there is no chooser, and milestone 568 (the boot file has nowhere to go on a device-tree machine) blocks one.
  4. Each architecture's boot path. x86_64 boots uefi_loader from OVMF. aarch64 under QEMU boots it from edk2, the same UEFI path, so 525's slot chooser is reused rather than written twice. riscv64 boots OpenSBI, then U-Boot, which runs uefi_loader with bootefi, as 858's fork 7 ruled for radon and argon.
  5. Rollback. A new kernel that never confirms (554) spends its tries, and the chooser starts the previous slot.

Done when

Under QEMU on aarch64, riscv64 and x86_64, from a booted nife at the prompt:

Reuse: 525's slots and chooser, 554's confirmation, crates/boot_slot, and 858's design for the kernel package, moved to QEMU rather than redesigned.

BUGS

Index row

A kernel update is a package install and a reboot, with rollback on a failed boot, on all three architectures under QEMU before any lab machine relies on it.