Conversation
A/B boot via systemd-boot boot counting on generation BLS entries. The newest generation's entry gets a +N-0 suffix. If the health check fails after N attempts, systemd-boot falls back to the previous proven generation. No special partition layout or slot abstraction. /run/booted-system and /run/current-system already provide A/B semantics — the immutable Nix store guarantees both closures remain available. Also cleans up nixpkgs leftovers from systemd-boot-builder.py (copyExtraFiles, checkMountpoints, bootspecTools stubs; fixes rebootForBitlocker always being truthy).
jonringer
force-pushed
the
jonringer/ab-boot
branch
from
September 10, 2026 19:47
85c156d to
2d8ded9
Compare
jonringer
commented
Sep 10, 2026
Comment on lines
-140
to
-149
| boot_json_str = run( | ||
| [ | ||
| f"{BOOTSPEC_TOOLS}/bin/synthesize", | ||
| "--version", | ||
| "1", | ||
| system_directory, | ||
| "/dev/stdout", | ||
| ], | ||
| stdout=subprocess.PIPE, | ||
| ).stdout |
Collaborator
Author
There was a problem hiding this comment.
this was a stop gap for when boot.spec was introduced, since we don't have any computers installing ekaos on baremetal as of yet, we don't need it.
Comment on lines
+49
to
+50
| machine.succeed("systemctl cat ekaos-bless-boot.service") | ||
| machine.wait_for_unit("ekaos-bless-boot.service") |
Collaborator
Author
There was a problem hiding this comment.
only really asserts the blessed behavior, we should attempt a new working generation and reboot. Then also tests a failing generation and fallback workflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A/B boot via systemd-boot boot counting on existing generation BLS entries. The newest generation's entry gets a +N-0 suffix. If the health check fails after N boot attempts, systemd-boot falls back to the previous proven generation.
No new partition layout, no slot abstraction, no update tool. /run/booted-system and /run/current-system already provide the A/B semantics — the immutable Nix store guarantees both closures remain available.