diff options
| author | Teguh Sobirin <teguh@sobir.in> | 2016-04-16 21:02:48 +0700 |
|---|---|---|
| committer | Teguh Sobirin <teguh@sobir.in> | 2016-04-16 21:02:48 +0700 |
| commit | 20f687e907a821e825b9c035e78ce997ce8114f2 (patch) | |
| tree | 799300acf46b62947239c24ba8c548740aaef062 /scripts | |
| parent | 99bf2f4d61abd32e275592800c1367b8e58bb16c (diff) | |
Add missing /dev/pts
Missing /dev/pts causing "Can not write log, openpty() failed (/dev/pts not mounted?)"
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/common | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/common b/scripts/common index 8c0e914..814f37f 100644 --- a/scripts/common +++ b/scripts/common @@ -51,6 +51,10 @@ on_chroot() { if ! mount | grep -q `realpath ${ROOTFS_DIR}/dev`; then mount --bind /dev ${ROOTFS_DIR}/dev fi + + if ! mount | grep -q `realpath ${ROOTFS_DIR}/dev/pts`; then + mount --bind /dev/pts ${ROOTFS_DIR}/dev/pts + fi if ! mount | grep -q `realpath ${ROOTFS_DIR}/sys`; then mount --bind /sys ${ROOTFS_DIR}/sys |
