Browse Source

Add missing /dev/pts

Missing /dev/pts causing "Can not write log, openpty() failed (/dev/pts not mounted?)"
pull/2/head
Teguh Sobirin 5 years ago
parent
commit
20f687e907
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      scripts/common

+ 4
- 0
scripts/common View File

@ -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

Loading…
Cancel
Save