diff --git a/src/libstore/build.cc b/src/libstore/build.cc index e5285ad9a..416c775a3 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2699,8 +2699,8 @@ void DerivationGoal::runChild() } else { if (errno != EINVAL) throw SysError("mounting /dev/pts"); - doBind("/dev/pts", "/dev/pts"); - doBind("/dev/ptmx", "/dev/ptmx"); + doBind("/dev/pts", chrootRootDir + "/dev/pts"); + doBind("/dev/ptmx", chrootRootDir + "/dev/ptmx"); } }