commit 9f9a4cf21e67e3f5bc8e36c83d2b565ac8315109
parent b06431d4fdec92a96dc13f6cea58db85f55d2ace
Author: ccx <ccx@te2000.cz>
Date: Thu, 4 Apr 2024 20:17:39 +0000
Create /dev/fd symlinks, depend on /sys from mdevd
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/s6-rc.aat b/s6-rc.aat
@@ -154,7 +154,15 @@
|add_to_bundle("ok-sysinit", (<dev_manager>))
|}
-|start_longrun("mdevd", "mount-dev") # TODO add "mount-proc mount-sys", add logger
+|start_oneshot("prepare-dev", "mount-dev")
+|up()
+ if { ln -s -f /proc/self/fd /dev/ }
+ if { ln -s -f /proc/self/fd/0 /dev/stdin }
+ if { ln -s -f /proc/self/fd/1 /dev/stdout }
+ ln -s -f /proc/self/fd/2 /dev/stderr
+|end()
+
+|start_longrun("mdevd", "mount-dev prepare-dev mount-sys") # TODO add "mount-proc mount-sys", add logger
|notification_fd(3)
|run()
#!{{env_el("mdevd")}} -P