mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
build.cc: fix bind-mount of /dev/{pts,ptmx} fallback
Don't bind-mount these to themselves, mount them into the chroot directory. Fixes pty issues when using sandbox on CentOS 7.4. (build of perlPackages.IOTty fails before this change)
This commit is contained in:
parent
a8c61cef26
commit
6d9129014d
1 changed files with 2 additions and 2 deletions
|
@ -2699,8 +2699,8 @@ void DerivationGoal::runChild()
|
||||||
} else {
|
} else {
|
||||||
if (errno != EINVAL)
|
if (errno != EINVAL)
|
||||||
throw SysError("mounting /dev/pts");
|
throw SysError("mounting /dev/pts");
|
||||||
doBind("/dev/pts", "/dev/pts");
|
doBind("/dev/pts", chrootRootDir + "/dev/pts");
|
||||||
doBind("/dev/ptmx", "/dev/ptmx");
|
doBind("/dev/ptmx", chrootRootDir + "/dev/ptmx");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue