Branch: refs/heads/master
Home: https://github.com/NixOS/nix
Commit: 6fe13e6aba771452e2637d9a8102569c1007d919
https://github.com/NixOS/nix/commit/6fe13e6aba771452e2637d9a8102569c1007d919
Author: Eelco Dolstra <[email protected]>
Date: 2012-02-17 (Fri, 17 Feb 2012)
Changed paths:
M src/libstore/build.cc
Log Message:
-----------
Fix chroots builds
Chroots are initialised by hard-linking inputs from the Nix store to
the chroot. This doesn't work if the input has its immutable bit set,
because it's forbidden to create hard links to immutable files. So
temporarily clear the immutable bit when creating and destroying the
chroot.
Note that making regular files in the Nix store immutable isn't very
reliable, since the bit can easily become cleared: for instance, if we
run the garbage collector after running ‘nix-store --optimise’. So
maybe we should only make directories immutable.
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits