diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 6b7748c83..df0cde038 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2691,8 +2691,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"); } }