about summary refs log tree commit diff
path: root/nix.spec.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-02-18T00·23+0100
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-02-18T00·23+0100
commit6fe13e6aba771452e2637d9a8102569c1007d919 (patch)
tree049f9493fe9740d1249bae7424aacea9bb98d496 /nix.spec.in
parentbd013b6f987c23c3b99b639ba7cdbc7b694a13f5 (diff)
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.
Diffstat (limited to 'nix.spec.in')
0 files changed, 0 insertions, 0 deletions