feat(asahi): add AsahiBootChain rollback model and bootChain schema field#26
Merged
Conversation
…ield schemas/boot-release-set.schema.json: adds optional bootChain field to spec with type enum (asahi-m1n1-uboot-systemd-boot, uefi-systemd-boot, uefi-grub, coreboot, uboot-generic) and asahi sub-object (m1n1Version, ubootVersion, efiVarsMutable, rollbackTarget[string|null]) asahi_boot_chain.py: non-mutating model of the m1n1→U-Boot→systemd-boot chain; AsahiBootChainInfo.validate() enforces efiVarsMutable=false (mandatory on Apple Silicon); AsahiBootChain.detect_generations() reads NixOS profile symlinks; plan_rollback() returns AsahiRollbackPlan targeting most-recent previous generation; no subprocess calls, no disk writes examples/builder-aarch64-dev-release.example.json: Phase 0 fixture pointing at local Katello content server (127.0.0.1:8101) with Asahi boot chain, dev lifecycle environment, katello:SocioProphet/sourceos-builder-aarch64/dev release set ref 13 tests, all passing
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.
Summary
boot-release-set.schema.json: adds optionalbootChainfield with type enum andasahisub-object;rollbackTargetacceptsstring | nullasahi_boot_chain.py: non-mutating rollback model;validate()enforcesefiVarsMutable=false(mandatory on Apple Silicon — prevents EFI namespace conflict with macOS);detect_generations()reads NixOS profile symlinks;plan_rollback()returns anAsahiRollbackPlantargeting the most-recent previous generationexamples/builder-aarch64-dev-release.example.json: Phase 0 fixture with Asahi boot chain, local Katello content server (127.0.0.1:8101),devlifecycle envTest plan
pytest tests/test_asahi_boot_chain.py)pytest)plan_rollback()returnsdeniedwhenefiVarsMutable=truedetect_generations()returns at least one generation