Skip to content

nixos-anywhere: reimport facts after kexec and throw if kexec failed #580

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

Merged
merged 4 commits into from
Aug 13, 2025

Conversation

Enzime
Copy link
Member

@Enzime Enzime commented Aug 11, 2025

This PR can be more easily reviewed by going through each commit one at a time

@Enzime Enzime force-pushed the push-mrpmsymxtmkz branch from 18994f5 to 03058e6 Compare August 11, 2025 07:06
@@ -541,9 +542,11 @@ importFacts() {
maybeSudo=sudo
elif [[ ${hasDoas} == "y" ]]; then
maybeSudo=doas
elif [[ ${hasRun0} == "y" ]]; then
maybeSudo=run0
Copy link
Member

Choose a reason for hiding this comment

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

Did you test run0?

Copy link
Member

@Mic92 Mic92 Aug 11, 2025

Choose a reason for hiding this comment

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

I also added run0 in https://github.com/nix-community/nixos-anywhere/pull/448/files but in my memory there was more required.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tested ssh host run0 whoami and it requires a TTY for authentication and outputs the prompt to stdout which I'm not sure will mess up nixos-anywhere so I've decided to drop it for now in this PR

@Enzime Enzime force-pushed the push-mrpmsymxtmkz branch from 03058e6 to 8441ad7 Compare August 13, 2025 02:49
@Enzime Enzime enabled auto-merge August 13, 2025 02:51
@Enzime Enzime added this pull request to the merge queue Aug 13, 2025
Merged via the queue into main with commit 39a80dc Aug 13, 2025
4 checks passed
@Enzime Enzime deleted the push-mrpmsymxtmkz branch August 13, 2025 02:58
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.

3 participants