synit/packaging/packages/synit-config/synit-init.sh

23 lines
335 B
Bash
Executable File

#!/bin/sh
mount -t devtmpfs none /dev
mkdir /dev/pts
mount -t devpts none /dev/pts
mkdir /dev/shm
mount -t tmpfs -o nodev,nosuid,noexec none /dev/shm
mount -t proc none /proc
mount -t sysfs none /sys
mount -t tmpfs none /run
# Docker wants this
mount -t cgroup2 none /sys/fs/cgroup
mount -o rw,remount /
exec /sbin/synit-pid1