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

View file

@ -1750,6 +1750,11 @@ void DerivationGoal::startBuilder()
host file system. */ host file system. */
Paths defaultDirs; Paths defaultDirs;
defaultDirs.push_back("/dev"); 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"); defaultDirs.push_back("/proc");
Paths dirsInChroot = querySetting("build-chroot-dirs", defaultDirs); Paths dirsInChroot = querySetting("build-chroot-dirs", defaultDirs);