From efd1c107babffc6f35aaa835227c2b5fe494b96d Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Thu, 16 Nov 2023 10:50:38 -0500 Subject: [PATCH] Create missing /dev/pts device Change-type: patch Signed-off-by: Kyle Harding --- overlay/sbin/init | 5 +++++ test/healthcheck.sh | 2 ++ 2 files changed, 7 insertions(+) diff --git a/overlay/sbin/init b/overlay/sbin/init index 1dbe3b9..2c8bd74 100644 --- a/overlay/sbin/init +++ b/overlay/sbin/init @@ -45,6 +45,11 @@ if ! mountpoint -q /dev/shm; then mount -v -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=65536k shm /dev/shm fi +if ! mountpoint -q /dev/pts; then + mkdir -p /dev/pts + mount -v -t devpts devpts /dev/pts +fi + if ! mountpoint -q /sys/fs/cgroup; then mkdir -p /sys/fs/cgroup # mount -v -t cgroup cgroup /sys/fs/cgroup diff --git a/test/healthcheck.sh b/test/healthcheck.sh index 78e4c41..505b6f1 100644 --- a/test/healthcheck.sh +++ b/test/healthcheck.sh @@ -31,6 +31,8 @@ echo "Testing stderr" >/dev/stderr echo "Testing stdout" 1> >(tee "$HOME"/stdout) echo "Testing stderr" 2> >(tee "$HOME"/stderr) +script -q -e -c "echo 'Testing pseudo-terminal'" + if [ -n "${HOSTNAME}" ]; then test "${HOSTNAME}" = "$(hostname)" fi