Merge pull request #9351 from Trundle/update-chroot-store-comment

Update comment to reflect bind mounts are now used for store in chroot
This commit is contained in:
Théophane Hufschmitt 2023-11-14 09:09:27 +01:00 committed by GitHub
commit c889881cbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -652,8 +652,8 @@ void LocalDerivationGoal::startBuilder()
#if __linux__
/* Create a temporary directory in which we set up the chroot
environment using bind-mounts. We put it in the Nix store
to ensure that we can create hard-links to non-directory
inputs in the fake Nix store in the chroot (see below). */
so that the build outputs can be moved efficiently from the
chroot to their final location. */
chrootRootDir = worker.store.Store::toRealPath(drvPath) + ".chroot";
deletePath(chrootRootDir);