aboutsummaryrefslogtreecommitdiffstats
path: root/layout/rootfs/etc/s6-rc/source/init-utmp-early/up
diff options
context:
space:
mode:
Diffstat (limited to 'layout/rootfs/etc/s6-rc/source/init-utmp-early/up')
-rw-r--r--layout/rootfs/etc/s6-rc/source/init-utmp-early/up5
1 files changed, 5 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp-early/up b/layout/rootfs/etc/s6-rc/source/init-utmp-early/up
new file mode 100644
index 0000000..cb91c16
--- /dev/null
+++ b/layout/rootfs/etc/s6-rc/source/init-utmp-early/up
@@ -0,0 +1,5 @@
+if { s6-mkdir -p -m 0755 /run/utmps }
+if { s6-envuidgid utmp s6-chown -U -- /run/utmps }
+s6-setuidgid utmp
+redirfd -w 1 /run/utmps/utmp
+exit 0