libstore: Always mount `/dev/pts' individually.

This fixes problems such as Tcl's PTY handling:

  ERROR: The system has no more ptys.  Ask your system administrator to
  create more.
This commit is contained in:
Ludovic Courtès 2008-10-16 21:04:32 +00:00
parent 9d6d50269b
commit c98ea254dc
1 changed files with 5 additions and 0 deletions

View File

@ -1750,6 +1750,11 @@ void DerivationGoal::startBuilder()
host file system. */
Paths defaultDirs;
defaultDirs.push_back("/dev");
/* The `/dev/pts' directory must be mounted separately so that
newly-created pseudo-terminals show up. */
defaultDirs.push_back("/dev/pts");
defaultDirs.push_back("/proc");
Paths dirsInChroot = querySetting("build-chroot-dirs", defaultDirs);