Repository navigation
composefs: Complete opt-in boot counting coverage - #133
Draft
cgwalters-bot wants to merge 1 commit into
Draft
cgwalters-bot wants to merge 1 commit into
cgwalters-bot wants to merge 1 commit into
Conversation
An unbootable staged deployment should not remain the default indefinitely. Honor /etc/kernel/tries on updates to systemd-boot deployments, using the shared Type 1 writer for both BLS and UKI. Limit counting to the ESP because older loaders cannot decrement counters on XBOOTLDR. Part of cgwalters-forge#131 Unit tests passed; container and VM checks hit the same crun sd-bus startup failure as unchanged main. Assisted-by: https://github.com/cgwalters/cgwalters#llms
Collaborator
Author
|
Rebase round 1 of 2 for Generated-by: https://github.com/cgwalters/#llms |
Collaborator
Author
cgwalters-bot
force-pushed
the
dispatch/implement/agent-run-43554107027
branch
from
December 2, 2026 00:41
ccdb20c to
4a49fc0
Compare
Collaborator
Author
|
Fix run report: Three review passes found no remaining rebase blocker, but an inherited UKI compatibility issue still needs resolution before merge. Generated-by: https://github.com/cgwalters/#llms |
Collaborator
Author
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.
Executive summary
Superseding draft for #25: reuse its counting implementation (a65adf3, 346a662, f1ac557) on the admitted base and extend BLS/UKI wrapper tests and failure-detection docs. Counting prevents an unbootable staged deployment from remaining the default indefinitely; it stays opt-in through the running host's /etc/kernel/tries. Leave #25's branch and closing decision untouched.
Part of #131
Re-read #65 and #122; boot-complete is not included or superseded. Failed-assessment/prevented-blessing checks with #122 remain an integration gate. Exhaustion is simulated by renaming the wrapper, not three real failed boots. Explicit rollback keeps its existing uncounted behavior; GRUB, aboot and soft-reboot policy are unchanged. The test alone sets tries=3 and installs the local SELinux rename workaround; no stock-policy readiness, policy publication or default enablement is claimed.
Verification and remaining gates
Tested head: 0ca885f plus this uncommitted patch.
cargo test -p bootc-lib counted_entries --lib(2),cargo test -p bootc-lib boot_counting --lib(3),cargo test -p bootc-lib test_type1_filename_generation --lib(1),cargo test -p bootc-lib --lib --quiet(338 passed, 1 ignored),cargo xtask update-generated direct,cargo xtask update-generated direct --check,cargo fmt --all --check, andgit diff --check: exit 0.just validateandjust unit-tests: exit 1, container startup failed with crun sd-bus error.just test-composefs systemd ext4 bls unsealed composefs-boot-countingandjust test-composefs systemd ext4 uki sealed composefs-boot-counting: exit 1 at the same container build prerequisite. Directcargo xtask run-tmt --env=BOOTC_variant=composefs --composefs-backend --bootloader=systemd --filesystem=ext4 --boot-type=bls --seal-state=unsealed localhost/bootc composefs-boot-countingand the corresponding--boot-type=uki --seal-state=sealedcommand: exit 1, bcvk missing.No guest ran. Intended guests: CentOS Stream 10, composefs v1, systemd-boot, ext4, BLS/unsealed and UKI/sealed with test Secure Boot keys. Host lacks bcvk, tmt, virsh and runner access to /dev/kvm. Runtime blessing, fallback, rollback and GC proof on this head remains outstanding; #25's historical passes are not refreshed-head proof. A temporary #122 integration build was not feasible with these prerequisites missing.
Review: one adversarial pass, no blockers; important follow-ups are systemd-boot INT_MAX counter alignment, nonfatal invalid-UTF-8 tries handling, and observing a real decrement while blessing is prevented.
Publication dependency: fork default is forge; this proposal uses admitted base main rather than bypassing caller bounds. Maintainer rebase/retarget to forge is required for a default-branch replacement. No upstream posting, branch rewrite or approval-boundary change.