-
Notifications
You must be signed in to change notification settings - Fork 297
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
lib/deploy: Support locking deployment finalization #1841
Conversation
Ahh, keep forgetting to try out the new GitHub draft PR feature. |
5ccec0c
to
094ef46
Compare
Do we expect rpm-ostree will e.g. always write out this file when it starts? |
Yeah, so basically I'm thinking something like:
|
I guess we could always write out the file on boot... Hmm, this ties into coreos/rpm-ostree#1747 as well. E.g. if we're driven by an agent, then we could default to always locking finalization? Though I think I'd prefer making it explicit still and just let the "driver" part be about automatic updates and injecting info in |
Rather than wrapping each instance of `sd_journal_*` with `HAVE_SYSTEMD`, let's just add some convenience macros that are just no-op if we're not compiling with systemd.
This can happen if a deployment was staged and later cleaned up. Though just as a helper when debugging issues, let's explicitly mention that case.
Teach `ostree-finalize-staged.service` to check for a file in `/run` to determine if it should do the finalization. This will be used in RPM-OSTree, where we want to be able to separate out "preparing updates" from "making update the default" for more fine-grained control. See: coreos/rpm-ostree#1748
094ef46
to
b003fcd
Compare
OK, this one should be good to go! |
This can happen if a deployment was staged and later cleaned up. Though just as a helper when debugging issues, let's explicitly mention that case. Closes: #1841 Approved by: cgwalters
Teach `ostree-finalize-staged.service` to check for a file in `/run` to determine if it should do the finalization. This will be used in RPM-OSTree, where we want to be able to separate out "preparing updates" from "making update the default" for more fine-grained control. See: coreos/rpm-ostree#1748 Closes: #1841 Approved by: cgwalters
☀️ Test successful - status-atomicjenkins |
Teach
ostree-finalize-staged.service
to check for a file in/run
todetermine if it should do the finalization. This will be used in
RPM-OSTree, where we want to be able to separate out "preparing updates"
from "making update the default" for more fine-grained control. See:
coreos/rpm-ostree#1748