Skip to content

acl: use slot-*.addon.efi verbatim instead of verity*.addon.efi - #759

Merged
bfjelds (bfjelds) merged 3 commits into
mainfrom
user/bfjelds/acl-slot-addon-copy
Aug 28, 2026
Merged

acl: use slot-*.addon.efi verbatim instead of verity*.addon.efi#759
bfjelds (bfjelds) merged 3 commits into
mainfrom
user/bfjelds/acl-slot-addon-copy

Conversation

@bfjelds

@bfjelds bfjelds (bfjelds) commented Aug 28, 2026

Copy link
Copy Markdown
Member

Rename ACL slot-based uki addons from verity-{a|b}.addon.efi to slot-{a|b}.addon.efi and, on update, copy addon as named (no longer removing -<slot>).

Validated with pr-e2e + acldevel

…n.efi

ACL verity addon templates are renamed to slot-a.addon.efi/slot-b.addon.efi
on the image ESP. Copy the selected slot template into the staged UKI
addon directory verbatim (no rename to verity.addon.efi), matching its
source filename.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates ACL UKI verity-addon activation to use slot-specific addon template filenames (slot-a.addon.efi / slot-b.addon.efi) and to stage the selected template without renaming, aligning staged addon filenames with the source templates on the image ESP.

Changes:

  • Switch template selection for A/B volumes from verity-{a,b}.addon.efi to slot-{a,b}.addon.efi.
  • Stage the chosen template into the staged .extra.d/ directory using its original filename (no verity.addon.efi rename).
  • Remove the unused VERITY_ADDON_FILENAME constant and update related tests/comments.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread crates/trident/src/engine/boot/uki.rs Outdated
Comment thread crates/trident/src/engine/boot/uki.rs
Introduce SLOT_A_ADDON_FILENAME and SLOT_B_ADDON_FILENAME constants for
slot-a.addon.efi/slot-b.addon.efi, replacing string literals in
activate_verity_addon_for_target_volume and its tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bfjelds bfjelds (bfjelds) changed the title esp: copy slot-*.addon.efi verbatim instead of renaming to verity.addon.efi acl: use slot-*.addon.efi verbatim instead of verity*.addon.efi Aug 28, 2026
- Fix ACL_ADDON_TEMPLATES_DIR doc comment: still referenced the old
  verity-a/verity-b template names instead of slot-a/slot-b.
- Fix activate_verity_addon_for_target_volume to remove a stale addon
  for the other slot from the staged addon dir before activating the
  target slot. stage_uki_on_esp copies the images live .extra.d/
  verbatim, and ACL images ship slot A active by default, so an update
  targeting slot B could otherwise leave both slot-a.addon.efi and
  slot-b.addon.efi staged, letting systemd-boot apply both (conflicting)
  verity cmdlines.
- Add regression test covering stale other-slot addon removal.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@bfjelds
bfjelds (bfjelds) marked this pull request as ready for review August 28, 2026 22:13
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@bfjelds
bfjelds (bfjelds) merged commit 8021745 into main Aug 28, 2026
93 of 97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants