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

Don’t use stat --printf in nix-profile.sh #3129

Closed
wants to merge 1 commit into from

Conversation

matthewbauer
Copy link
Member

This breaks on some systems where "coreutils" commands are installed
in multiple places. We only needed coreutils here for the ‘stat
--printf’ checks on the user ownership. This removes those checks.
This check should be done in Nix commands like “nix doctor”.

Fixes #3127

This breaks on some systems where "coreutils" commands are installed
in multiple places. We only needed coreutils here for the ‘stat
--printf’ checks on the user ownership. This removes those checks.
This check should be done in Nix commands like “nix doctor”.

Fixes NixOS#3127
@edolstra
Copy link
Member

edolstra commented Oct 9, 2019

I'd like to get rid of these checks, but currently they're the only thing guarding against #509.

@ElvishJerricco
Copy link
Contributor

Is there a way to get these checks without causing #3127?

@edolstra
Copy link
Member

edolstra commented Oct 9, 2019

  1. Add a helper command to nix to check permissions.
  2. Move profiles/gcroots to home directories so we don't need a world-writable /nix/var/nix/{profiles,gcroots}.

@matthewbauer
Copy link
Member Author

Opened #3135 as an alternative. Still not ideal, but at least will fix this particular issue.

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

Successfully merging this pull request may close these issues.

Can't bootstrap Nix on Ubuntu 18.04
3 participants