diff options
| author | PS <p@0x53.net> | 2026-02-01 12:06:46 +0100 |
|---|---|---|
| committer | PS <p@0x53.net> | 2026-02-01 12:06:46 +0100 |
| commit | eaf0ecff18ee063286ad423469241ca0eb2e4c6c (patch) | |
| tree | 692ca6a0fea576b21d988cb2459f492c6284648b /src/lib/source/system/vfs/mount-dev | |
| download | goetia-linux-eaf0ecff18ee063286ad423469241ca0eb2e4c6c.tar.gz goetia-linux-eaf0ecff18ee063286ad423469241ca0eb2e4c6c.tar.bz2 goetia-linux-eaf0ecff18ee063286ad423469241ca0eb2e4c6c.zip | |
version 0.2.0.0
Diffstat (limited to 'src/lib/source/system/vfs/mount-dev')
| -rw-r--r-- | src/lib/source/system/vfs/mount-dev/down | 8 | ||||
| -rw-r--r-- | src/lib/source/system/vfs/mount-dev/type | 1 | ||||
| -rw-r--r-- | src/lib/source/system/vfs/mount-dev/up | 17 |
3 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/source/system/vfs/mount-dev/down b/src/lib/source/system/vfs/mount-dev/down new file mode 100644 index 0000000..f7122a3 --- /dev/null +++ b/src/lib/source/system/vfs/mount-dev/down @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +#fdmove -c 2 1 + +# Not umounting since it is used until shutdown anyway +#umount /dev diff --git a/src/lib/source/system/vfs/mount-dev/type b/src/lib/source/system/vfs/mount-dev/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/vfs/mount-dev/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/vfs/mount-dev/up b/src/lib/source/system/vfs/mount-dev/up new file mode 100644 index 0000000..f8d57e8 --- /dev/null +++ b/src/lib/source/system/vfs/mount-dev/up @@ -0,0 +1,17 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +if { mount -n -t devtmpfs -o noexec,nosuid,mode=0755 devtmpfs /dev } + +background { ln -sf /proc/self/fd /dev/fd } +background { ln -sf fd/0 /dev/stdin } +background { ln -sf fd/1 /dev/stdout } +background { ln -sf fd/2 /dev/stderr } + +background { ln -sf /proc/kcore /dev/core } +background { ln -sf loop0 /dev/loop } +background { ln -sf ram0 /dev/ram } +background { ln -sf rtc0 /dev/rtc } |
