summaryrefslogtreecommitdiff
path: root/nix/libstore/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'nix/libstore/build.cc')
-rw-r--r--nix/libstore/build.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index 9bdf0a78aed..7dd630cc5d8 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -2805,7 +2805,10 @@ void DerivationGoal::startBuilder()
2805 } 2805 }
2806 for (auto & file : files) { 2806 for (auto & file : files) {
2807 if (pathExists(file)) { 2807 if (pathExists(file)) {
2808 ctx.filesInChroot[file] = file; 2808 /* On Guix System, /etc/services is a symlink; likewise,
2809 on systemd-based system, /etc/resolv.conf is a symlink.
2810 Dereference them. */
2811 ctx.filesInChroot[file] = canonPath(file, true);
2809 ctx.readOnlyFilesInChroot.insert(file); 2812 ctx.readOnlyFilesInChroot.insert(file);
2810 } 2813 }
2811 } 2814 }