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:
commit
9296186c75
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