Skip to content

core: add support for vpick for ExtensionImages=/ExtensionDirectories= - #31364

Merged
bluca merged 3 commits into
systemd:mainfrom
bluca:vpick_ext
Feb 19, 2024
Merged

bluca merged 3 commits into
systemd:mainfrom
bluca:vpick_ext

Conversation

@bluca

@bluca bluca commented Feb 16, 2024

Copy link
Copy Markdown
Member

No description provided.

@github-actions github-actions Bot added nspawn documentation tests please-review PR is ready for (re-)review by a maintainer labels Feb 16, 2024
@poettering poettering added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed please-review PR is ready for (re-)review by a maintainer labels Feb 19, 2024
@poettering poettering changed the title core: add support for vpick for ExtensionImages=/ExtensionImages= core: add support for vpick for ExtensionImages=/ExtensionDirectories= Feb 19, 2024
@bluca
bluca merged commit 0345691 into systemd:main Feb 19, 2024
@bluca
bluca deleted the vpick_ext branch February 19, 2024 11:16
@github-actions github-actions Bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Feb 19, 2024
bluca added a commit that referenced this pull request May 20, 2025
…rvice (#33995)

`ExtensionImages=` and `ExtensionDirectories=` now let you specify
vpick-named extensions; however, since they just get set up once when
the service is started, you can't see newer versions without restarting
the service entirely. Here, also reload confext extensions when you
reload a service. This allows you to deploy a new version of some
configuration and have it picked up at reload time without interruption
to your workload.

Right now, we would only reload confext extensions and leave the sysext
ones behind, since it didn't seem prudent to swap out what is likely
program code at reload. This is made possible by only going for the
`SYSTEMD_CONFEXT_HIERARCHIES` overlays (which only contains `/etc`).

This PR:
- Adjusts `service.c` to also refresh extensions when needed. 
- Adds integration tests to check that a confext reload actually
occurred.
- Adds to the `systemd.exec` man pages to document this behavior.

This is a follow up to #24864 and #31364. Thank you to @bluca and
@goenkam for help in getting this up.
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.

2 participants