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

lib/deploy: Support locking deployment finalization #1841

Closed
wants to merge 3 commits into from

Commits on Apr 24, 2019

  1. lib: Add ot_journal_* helper macros

    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.
    jlebon committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    e77dd60 View commit details
    Browse the repository at this point in the history
  2. lib/deploy: Write to journal if nothing to finalize

    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.
    jlebon committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    1e74d63 View commit details
    Browse the repository at this point in the history
  3. lib/deploy: Support locking deployment finalization

    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
    jlebon committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    b003fcd View commit details
    Browse the repository at this point in the history