diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-08-11 12:39:00 +0200 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-09-18 13:07:09 +0200 |
commit | 628adf2e034acb040874e267451b0a6e3f3ff96a (patch) | |
tree | 8ee88fcfc859c55b210c833dc7937b9ab623a001 /services | |
parent | 7ecb124df28e40ac0541e44312d5a863f644275e (diff) |
Move contents of devfs.sh script into service file
Conditionals can be eliminated, since we know exactely what the
situation looks like on Linux.
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'services')
-rw-r--r-- | services/devfs.in | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/services/devfs.in b/services/devfs.in index 271eae7..a15874e 100644 --- a/services/devfs.in +++ b/services/devfs.in @@ -3,4 +3,20 @@ type wait target boot after procfs sysfs before vfs -exec "@SCRIPTDIR@/devfs.sh" +exec { + mount -t devtmpfs none /dev + + ln -snf /proc/self/fd /dev/fd + ln -snf /proc/self/fd/0 /dev/stdin + ln -snf /proc/self/fd/1 /dev/stdout + ln -snf /proc/self/fd/2 /dev/stderr + ln -snf /proc/kcore /dev/core + + mkdir -p /dev/mqueue -m 1777 + mkdir -p /dev/pts -m 0755 + mkdir -p /dev/shm -m 1777 + + "@SCRIPTDIR@/trymount.sh" /dev/mqueue mqueue noexec,nosuid,nodev + "@SCRIPTDIR@/trymount.sh" /dev/pts devpts noexec,nosuid,gid=5,mode=0620 + "@SCRIPTDIR@/trymount.sh" /dev/shm tmpfs noexec,nosuid,nodev,mode=1777 +} |