Add missing /dev/pts
Missing /dev/pts causing "Can not write log, openpty() failed (/dev/pts not mounted?)"
This commit is contained in:
parent
5200b19f9a
commit
612c1a73f1
1 changed files with 4 additions and 0 deletions
|
@ -52,6 +52,10 @@ on_chroot() {
|
||||||
mount --bind /dev ${ROOTFS_DIR}/dev
|
mount --bind /dev ${ROOTFS_DIR}/dev
|
||||||
fi
|
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
|
if ! mount | grep -q `realpath ${ROOTFS_DIR}/sys`; then
|
||||||
mount --bind /sys ${ROOTFS_DIR}/sys
|
mount --bind /sys ${ROOTFS_DIR}/sys
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue