How A/B boot selection works
The updater writes the inactive system slot. Each slot pairs a read-only store with its verity tree. Configuration lives on a separate writable data partition.
Read the boot state
sentinel show version
bootctl status
On the running appliance, identify the current slot and boot entry before staging a replacement.
Follow an update
flowchart TD
stage[Stage: write inactive store + verity,<br/>select candidate with +3 tries] --> boot[Reboot: loader tries candidate]
boot --> health{Boot health checks pass?}
health -->|yes| bless[Blessed: counter removed,<br/>candidate becomes the working slot]
health -->|no| left{Tries left?}
left -->|yes| boot
left -->|no| prev[Loader boots the previous<br/>blessed slot]
| Partition | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Content | ESP | verity A | store A | verity B | store B | data |
The previous working slot stays available throughout. The boot mechanism protects against a candidate failing to boot. An operator still has to check management connectivity and forwarding after startup. See the update runbook.
Run the fallback check
nix build .#checks.x86_64-linux.bootfallback -L
Run on a KVM-enabled build host.
Safety boundaries
Fallback needs a previously bootable, blessed slot; a fresh installation with no working predecessor cannot promise automatic recovery. Keep a console and verify the actual selected entry, not only a configured default.
--allow-unsigned permits only an explicitly trusted Community source. It does not bypass active-disk, boot-selection or identical-active-GUID refusal. Native Enterprise appliances reject the Community image writer; use their signed channel workflow.