Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't crash if we can't rename the paths out of the sandbox
For some reason (probably linked to https://www.kernel.org/doc/html/latest/filesystems/overlayfs.html?highlight=overlayfs#renaming-directories), renaming the output paths of a derivation from their sandbox location (`/nix/store/abc-foo.drv.chroot/nix/store/def-foo`) to their final one (`/nix/store/def-foo`) fails in some scenarios with `EXDEV` (“invalid cross-device link”). Work around that by falling back to copying them in that case, which is much less efficient, but correct. Fix NixOS#8395
- Loading branch information