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/system/ensure-sysext: skip unit if systemd-sysext is skipped #68

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

pothos
Copy link
Member

@pothos pothos commented Apr 12, 2022

The unit failed to execute when the dependency systemd-sysext.service
was skipped because it's not needed. Normally this is harmless but it
still triggers a OnFailure event as reported in
flatcar/Flatcar#710

Use the same logic for skipping execution as done in
systemd-sysext.service - we can't use "systemctl is-enabled" because
Flatcar's inbuilt unit symlinks are not reported as "enabled".

How to use

Test that the built image doesn't contain a log about the unit having failed because of a dependency not being run

Testing done

Works as expected: ensure-sysext.service was skipped because all trigger condition checks failed

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

The unit failed to execute when the dependency systemd-sysext.service
was skipped because it's not needed. Normally this is harmless but it
still triggers a OnFailure event as reported in
flatcar/Flatcar#710

Use the same logic for skipping execution as done in
systemd-sysext.service - we can't use "systemctl is-enabled" because
Flatcar's inbuilt unit symlinks are not reported as "enabled".
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Apr 12, 2022
This pulls in flatcar/init#68 to skip
the ensure-sysext unit when systemd-sysext is skipped to prevent a
dependency failure being reported.

Closes: flatcar/Flatcar#710
@pothos pothos marked this pull request as ready for review April 13, 2022 03:27
@pothos pothos requested a review from a team April 13, 2022 03:27
@pothos pothos requested a review from a team April 13, 2022 09:04
@pothos pothos merged commit 656181f into flatcar-master Apr 13, 2022
@pothos pothos deleted the kai/skip-ensure-sysext branch April 13, 2022 11:41
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Apr 13, 2022
This pulls in flatcar/init#68 to skip
the ensure-sysext unit when systemd-sysext is skipped to prevent a
dependency failure being reported.

Closes: flatcar/Flatcar#710
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Apr 13, 2022
This pulls in flatcar/init#68 to skip
the ensure-sysext unit when systemd-sysext is skipped to prevent a
dependency failure being reported.

Closes: flatcar/Flatcar#710
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Apr 13, 2022
This pulls in flatcar/init#68 to skip
the ensure-sysext unit when systemd-sysext is skipped to prevent a
dependency failure being reported.

Closes: flatcar/Flatcar#710
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.

2 participants