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

Command to run comes from outside chroot #11

Open
DavidTruby opened this issue Sep 2, 2019 · 3 comments
Open

Command to run comes from outside chroot #11

DavidTruby opened this issue Sep 2, 2019 · 3 comments
Assignees

Comments

@DavidTruby
Copy link

The binary to run seems to come from the host system not the chroot, i.e. if I install a shell with nix (e.g zsh which my system doesn't have installed) and then try and run that with nix-user-chroot ~/.nix zsh, the command can't be found.
Preferably I would be able to manage my shell with nix and run it this way.

@DavidTruby
Copy link
Author

It tried naively to fix this myself (by just checking if the binary to run exists in the target nix directory, and using the one from the host if not) but I ran into lots of problems with locales and permissions. So, I probably don't know enough about this to fix it or even if it's an issue in the first place 😃

@Mic92
Copy link
Member

Mic92 commented Sep 3, 2019

Have you tried using the full path to the executable?
i.e.: ~/.nix-profile/bin/bash

@EggBaconAndSpam
Copy link

EggBaconAndSpam commented Nov 15, 2019

Is this possibly related to #12? More specifically, nix-user-chroot ~/.nix zsh inherits the PATH environment from its host shell, which doesn't contain ~/.nix-profile/bin and thus also not zsh.

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

No branches or pull requests

3 participants