-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
no-os install requires root login #279
Comments
I found this to be the case too. Works fine as long as root login on SSH is allowed including password auth is allowed or an entry in the authorized_users for the installing machine exists on the target host. All of that is not available on a Ubuntu Life-CD for example. With Nixos installer it's a peace of cake though. |
I wonder if this nixos-anywhere/src/nixos-anywhere.sh Line 441 in 31c945e
needs to be:
|
@sedlund not exactly. It should be something like this because the sudo must happen after sshing in the box. nixos-anywhere/src/nixos-anywhere.sh Lines 377 to 381 in 31c945e
EDIT: Actually I was wrong, well, the snippet I showed works but in my case I had encryption enabled with a passphrase but the script failed when asking for the passphrase. With your version it works. EDIT2: The linked PR fixes this issues, for me at least 🎉 |
I am installing NixOS with a booted installer CD this document mentions it can be done as nixos user that is present on the installer cd.
nixos-anywhere/docs/howtos/no-os.md
Line 22 in 4c94cec
but I received these errors:
I'd be happy to update the no-os doc to reflect that root is required. Or if you'd like to double check that sudo is being called in the appropriate places in the code.
Let me know
The text was updated successfully, but these errors were encountered: