Skip to content

Commit

Permalink
Create missing /dev/pts device
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Kyle Harding <[email protected]>
  • Loading branch information
klutchell committed Nov 16, 2023
1 parent 6393ad2 commit efd1c10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions overlay/sbin/init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions test/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efd1c10

Please sign in to comment.