diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2018-04-20T17·42+0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20T17·42+0200 |
commit | 9296186c759f1ef301e20fc7e246f104a206efa4 (patch) | |
tree | 08b8fa3eb7252238a9fad5da459238ae1c8a0315 /src | |
parent | a8c61cef2624ce39abb446e7c46064917f6f6b78 (diff) | |
parent | 6d9129014d443bcec23c6665f00fc020e1a9405b (diff) |
Merge pull request #2097 from dtzWill/fix/devpts-bind-mount
build.cc: fix bind-mount of /dev/{pts,ptmx} fallback
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/build.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index e5285ad9a938..416c775a35d2 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"); } } |