-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Installation fails on Clear Linux*, presumably because directory /etc/tmpfiles.d
doesn't exist by default
#7990
Comments
Yep, manually performing the command Simply adding a Full installation log, just in case you want to verify things: Output
|
OK, I may have spoken too soon. The command When I source the file manually, the . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
nix-shell -p nix-info --run "nix-info -m"
|
The daemon does appear to be running, though: ps aux | grep nix-daemon | grep -v grep Output:
|
The "borked" output might be because of this issue, and thus unrelated: #7937 (comment) I'll try downgrading, as suggested in that comment. |
Okay, the downgrade to 2.13.3 indeed made it work, although I still have to source the file
I'll check the Clear Linux* documentation to figure out which shell configuration file(s) it uses instead. |
If I understand this thread correctly, Clear Linux* only checks the file I just tried the following commands: sudo mkdir -p /etc/profile.d
sudo cp /etc/bashrc /etc/profile.d/nix # (This is the `/etc/bashrc` file that was created by Nix multi-user install script) And then I opened a new terminal session and ran So to summarize, the following issues need to be resolved in order to fix compatibility with Clear Linux*:
I'll play around with Nix on Clear Linux* a bit more, and I'll add more findings as I encounter them. But at least the following commands appear to be working fine here now, after applying the aforementioned fixes/workarounds: nix-channel --update
nix-channel --list
nix-shell -p nix-info --run "nix-info -m" |
Environment inconsistencies like these are an under-appreciated source of complexity that the installer tries to contain. Thanks for actively picking at it. A few questions to gather a little more information now:
I feel like I'm forgetting one, but that's a start at least. |
Platform
Additional information
No additional steps: I performed the command
sh <(curl -L https://nixos.org/nix/install) --daemon
for the multi-user installation, as instructed at https://nixos.org/download.htmlIt's relevant to know that Clear Linux* uses systemd and does not use SELinux, which at least in theory should make is suitable for the multi-user install of Nix, right?
It does seem like Clear Linux* does not have the directory
/etc/tmpfiles.d
by default. Perhaps the script shouldn't blindly assume that this directory already exists in every Linux distro? I'll try manually creating that directory first and then rerunning the multi-user install command. I'll share my findings of that in a comment below.Output
Output
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: