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

Can't build NixOS from source with a chroot store #2984

Open
ElvishJerricco opened this issue Jul 10, 2019 · 5 comments
Open

Can't build NixOS from source with a chroot store #2984

ElvishJerricco opened this issue Jul 10, 2019 · 5 comments
Labels

Comments

@ElvishJerricco
Copy link
Contributor

This looks like a Nix bug to me, not a problem in nixpkgs. If you use a chroot store, Nix is unable to build a NixOS VM without substituters. You get a Permission denied error regardless of whether you use a multi-user or single-user install of Nix.

nix build --no-link --store $(pwd)/foo --substituters "" --cores 30 -I nixpkgs=channel:nixos-19.03 -f "<nixpkgs/nixos>" --arg configuration '{}' vm
[11 built]
error: moving build output '/nix/store/kjqdwl76vp9wclcxpw2xmh0z73rq95py-documentation-highlighter' from the sandbox to the Nix store: Permission denied
@yorickvP
Copy link
Contributor

I suspect that nix-build running without root rights will fail to move nonwritable paths out of the sandbox, while the usual mode of operation allows this.

@domenkozar
Copy link
Member

See #3321

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/docker-build-issue/9495/1

@yorickvP
Copy link
Contributor

Please check again on master after #4312

@stale
Copy link

stale bot commented Jun 20, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Jun 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants