slackware-from-scratch/mount-sfs
2021-12-07 19:02:30 +01:00

9 lines
281 B
Bash
Executable file

#!/bin/bash
mount -v --bind /dev "$SFS"/dev
mount -vt devpts devpts "$SFS"/dev/pts -o gid=5,mode=620
mount -vt proc proc "$SFS"/proc
mount -vt sysfs sysfs "$SFS"/sys
mount -vt tmpfs tmpfs "$SFS"/run
if [ -h "$SFS"/dev/shm ]; then
mkdir -pv "$SFS"/"$(readlink "$SFS"/dev/shm)"
fi