From 20f687e907a821e825b9c035e78ce997ce8114f2 Mon Sep 17 00:00:00 2001 From: Teguh Sobirin Date: Sat, 16 Apr 2016 21:02:48 +0700 Subject: [PATCH] Add missing /dev/pts Missing /dev/pts causing "Can not write log, openpty() failed (/dev/pts not mounted?)" --- scripts/common | 4 ++++ 1 file changed, 4 insertions(+) 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