Skip to content

kernel-install: install addons in 90-uki-copy.install if they are present#36218

Merged
yuwata merged 1 commit intosystemd:mainfrom
bluca:kernel_install_addons
Feb 1, 2025
Merged

kernel-install: install addons in 90-uki-copy.install if they are present#36218
yuwata merged 1 commit intosystemd:mainfrom
bluca:kernel_install_addons

Conversation

@bluca
Copy link
Copy Markdown
Member

@bluca bluca commented Jan 29, 2025

mkosi now has a kernel-install plugin to build addons, mkosi-addon. If there are addons in .extra.d/ install them too to the ESP.

…sent

mkosi now has a kernel-install plugin to build addons, mkosi-addon.
If there are addons in <uki>.extra.d/ install them too to
the ESP.
@github-actions github-actions bot added the please-review PR is ready for (re-)review by a maintainer label Jan 29, 2025
@yuwata yuwata merged commit 75ee025 into systemd:main Feb 1, 2025
@github-actions github-actions bot removed the please-review PR is ready for (re-)review by a maintainer label Feb 1, 2025
@bluca bluca deleted the kernel_install_addons branch February 1, 2025 13:10
UKI_FILE="$UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION.efi"
fi

ADDON_DIR="$UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION.efi.extra.d"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hmm, this variable's name is a bit of a misnomer, since the ….extra.d/ subdir contains all four kinds of side-cars we have:

  • UEFI addons
  • credentials
  • confext
  • sysext

hence rename this variable EXTRA_DIR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

also, can you add document the new logic, i.e. in kernel-install(8) there should be a line about these sidecards being copied too where the plugins are discussed under "add"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(oh, and maybe also document at the same time that on "remove" (i.e. further down) the 90-uki-copy.install drop-in will not just delete the EFI binary again, but all sidecars too (i.e. the extra.d/ stuff): this it always did, but let's please document that at the same time, to make it symmetric

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

-> #36304.

yuwata added a commit to yuwata/systemd that referenced this pull request Feb 7, 2025
As the directory contains not only addons, but also credentials and
extensions.

No functional change, just refactoring.

Follow-up for 75ee025.
Addresses the post-merge comment
systemd#36218 (comment).
yuwata added a commit to yuwata/systemd that referenced this pull request Feb 7, 2025
yuwata added a commit to yuwata/systemd that referenced this pull request Feb 7, 2025
As the directory contains not only addons, but also credentials and
extensions.

No functional change, just refactoring.

Follow-up for 75ee025.
Addresses the post-merge comment
systemd#36218 (comment).
yuwata added a commit to yuwata/systemd that referenced this pull request Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants