Add /dev/shm for sysc

This allows named semaphores to be created. See sem_overview(7).
This commit is contained in:
Dor Askayo 2023-02-01 22:17:12 +02:00
parent d83f810773
commit 74c852b166
3 changed files with 11 additions and 6 deletions

View file

@ -441,6 +441,10 @@ populate_device_nodes() {
test -c "/dev/random" || mknod -m 444 "/dev/random" c 1 8
test -c "/dev/urandom" || mknod -m 444 "/dev/urandom" c 1 9
if command -v mount >/dev/null 2>&1; then
test -d "/dev/shm" || (mkdir /dev/shm && mount -t tmpfs tmpfs /dev/shm)
fi
if [ "${CHROOT}" = False ]; then
test -c "/dev/tty" || mknod -m 666 "/dev/tty" c 5 0
test -c "/dev/console" || mknod -m 666 "/dev/console" c 5 1