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

Determine whether a reboot is necessary when deploying, and take the appropriate action #957

Merged
merged 5 commits into from
Aug 3, 2022

Conversation

madeline-os
Copy link
Collaborator

@madeline-os madeline-os commented Aug 2, 2022

This addresses: #955

We use the same logic as as the NixOS auto-upgrade module. Though unfortunately, not in a way where we keep apace if that logic were to change. C'est la vie. See: NixOS/nixpkgs#185030

I have:

  • Based work on latest develop branch
  • Followed the contribution guide
  • Looked for lint in my changes with hlint . (lint found code you did not write can be left alone)
  • Run the test suite: $(nix-build -A selftest --no-out-link)
  • Updated the changelog
  • (Optional) Run CI tests locally: nix-build release.nix -A build.x86_64-linux --no-out-link (or x86_64-darwin on macOS)

@madeline-os madeline-os requested a review from ryantrinkle August 2, 2022 23:43
@madeline-os madeline-os force-pushed the deploy-reboot-logic branch from a03c2a5 to d91d680 Compare August 3, 2022 01:12
@madeline-os madeline-os requested a review from Ericson2314 August 3, 2022 01:47
Comment on lines +252 to +255
-- Note that we don't want to $(staticWhich "nix-env") here, because this is executing on a remote machine
-- This logic follows the nixos auto-upgrade module as of writing.
-- If the workflow is added to switch-to-configuration proper, we can simplify this:
-- https://github.com/obsidiansystems/obelisk/issues/958
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@madeline-os madeline-os merged commit 17d0277 into develop Aug 3, 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.

2 participants