-
-
Notifications
You must be signed in to change notification settings - Fork 164
nixos-anywhere: fix running nixos-facter
when it isn't installed
#575
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
Conversation
Tested this locally and it works 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the PR and it now fails when nixos-facter
is not installed as opposed to before.
This is the error I get:
error: unable to execute 'sudo': No such file or directory
On main this works. I suspect it is because of: abfb275
The quoting is now correct so that is approved. Unsure if the first revert is really necessary seeing as you completely rewrote everything there anyway.
How are you testing it? |
This is how I tested it:
|
Ah, I found the issue. Edit: #576 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok tested together with: #576, which works.
…acter` call" This reverts commit 29f6973.
…ter` call" This reverts commit abfb275.
This is unnecessary because we switch to using `root` after we kexec and `nixos-images` provides an installer without `sudo` so this actively causes installations to fail if a user wasn't already booted into a NixOS installer.
e25d677
to
d239ac6
Compare
This PR reverts #570 as I think we still want to run
nixos-facter
withsudo
if possible and the changing the order of the flags doesn't fix the quoting issues