-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
System not rebooting if sudo is present and --extra-files is used #431
Comments
Perfect timing, I was encountering the issue as well right now. Workaround also works for me as I log in root before kexec. |
When using terraform all-in-one, this error is "flaky" - as in it occurs roughly 50% the time. I'm not sure why the error only occurs sometimes when I run Error Message
|
phaer
added a commit
to phaer/nixos-remote
that referenced
this issue
Dec 10, 2024
There seems to be no scenario where we aren't root on the target system at this point. But there is one where it breaks: If hasSudo is true because the pre-kexec env had it, but kexec env does not. See nix-community#431
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using --extra-files, I've noticed that the system is not rebooting automatically after installation.
I think the installation is failing at the point where the extra files are copied across
nixos-anywhere/src/nixos-anywhere.sh
Line 580 in 9ba099b
Is
maybeSudo
supposed to be used here even in the kexec environment? As it's logging that the command cannot be found in the installer kexec environment.Uninstalling sudo before running nixos-anywhere works fine.
The text was updated successfully, but these errors were encountered: