-
Notifications
You must be signed in to change notification settings - Fork 451
WIP: Bug 1885365: update.go: use systemd presets to enable/disable units #2142
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
Conversation
Change unit enable/disable to write a mco systemd preset file, so that we can properly handle units not targetting multi-user.target.wants. The code is essentially copied from Ignition/units and emulates Ignition behaviour for this. Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>
@yuqi-zhang: This pull request references Bugzilla bug 1885365, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yuqi-zhang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@yuqi-zhang: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
I think I should perhaps just shell out directly to |
The officially recommended approach for programmatic enable/disable operations at runtime is to use the systemd D-Bus API, but I don't know if that's feasible here. |
Yeah, I think so. It'd be a lot simpler of a patch too. |
closing in favour of #2145 |
@yuqi-zhang: This pull request references Bugzilla bug 1885365. The bug has been updated to no longer refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Change unit enable/disable to write a mco systemd preset file, so
that we can properly handle units not targetting multi-user.target.wants.
The code is essentially copied from Ignition/units and emulates
Ignition behaviour for this.