Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd: add helper service to start sysext services #65

Merged
merged 1 commit into from
Mar 17, 2022

Conversation

pothos
Copy link
Member

@pothos pothos commented Mar 15, 2022

As systemd-sysext images are not really meant for system services
(that is the role of portable services) the services that they define
don't get started even if they include the symlinks to do so.
Add a helper service that starts the new services by retriggering the
socket, timers and multi-user targets as these are the targets a user
would normally use to enable units. We can add more as needed.

How to use

systemctl start systemd-sysext or booting when this service is enabled will now start the services defined in the sysext image that is loaded (given they use the multi-user or sockets targets)

Testing done

the above with a converted torcx image (plus the regular kola build tests as linked in the coreos-overlay PR)

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
    ↑ in coreos-overlay

@pothos pothos requested a review from a team March 15, 2022 19:10
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Mar 15, 2022
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Mar 16, 2022
@pothos pothos force-pushed the kai/ensure-sysext branch from e693b2a to 2c57c47 Compare March 16, 2022 08:58
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Mar 16, 2022
As systemd-sysext images are not really meant for system services
(that is the role of portable services) the services that they define
don't get started even if they include the symlinks to do so.
Add a helper service that starts the new services by retriggering the
socket, timers and multi-user targets as these are the targets a user
would normally use to enable units. We can add more as needed.
@pothos pothos force-pushed the kai/ensure-sysext branch from 2c57c47 to 96bc0b3 Compare March 16, 2022 09:14
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Mar 16, 2022
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Mar 17, 2022
@pothos pothos requested a review from a team March 17, 2022 11:26
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Mar 17, 2022
@pothos pothos merged commit a22b550 into flatcar-master Mar 17, 2022
@pothos pothos deleted the kai/ensure-sysext branch March 17, 2022 16:02
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Mar 17, 2022
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