Merge pull request #2097 from dtzWill/fix/devpts-bind-mount

build.cc: fix bind-mount of /dev/{pts,ptmx} fallback
This commit is contained in:
Eelco Dolstra 2018-04-20 19:42:39 +02:00 committed by GitHub
commit 9296186c75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");
}
}