nix-installer
nix-installer copied to clipboard
Install fails when /nix/store is a bind mount
trafficstars
Was hoping to use this to install nix on Fedora, but since I also run WSL where I'd also like to have nix installed, I wanted to share /nix/store between the two installations to not waste huge amounts of disk space. However, this does not seem possible.
Error
Error:
0: Install failure
1: Error executing action
2: Action `provision_nix` errored
3: Action `move_unpacked_nix` errored
4: Rename `/nix/temp-install-dir/nix-2.19.3-x86_64-linux/store/0lv5pkvsq83gqki6x323jb53lgcnhjfw-brotli-1.0.9-lib` to `/nix/store/0lv5pkvsq83gqki6x323jb53lgcnhjfw-brotli-1.0.9-lib`
5: Cross-device link (os error 18)
Metadata
| key | value |
|---|---|
| version | 0.16.1 |
| os | linux |
| arch | x86_64 |
I believe this is happening because the contents of /nix/temp-install-dir/nix-2.19.3-x86_64-linux/store/0lv5pkvsq83gqki6x323jb53lgcnhjfw-brotli-1.0.9-lib contains a symlink to something else on the current partition. I'm not sure of a solution immediately.