Skip to content

Commit

Permalink
Merge pull request #39 from balena-io-experimental/kyle/devpts
Browse files Browse the repository at this point in the history
Create missing /dev/pts device
  • Loading branch information
flowzone-app[bot] authored Nov 16, 2023
2 parents 6393ad2 + efd1c10 commit 7a2a628
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 7a2a628

Please sign in to comment.