From 05742401238ce51e1ef0f840bc0c06b8c8e4ff33 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 24 Dec 2025 15:22:57 +0000 Subject: Adjust s6-rc db layout --- layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/btmpd | 0 layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/utmpd | 0 layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/wtmpd | 0 layout/rootfs/etc/s6-rc/source/init-utmp/down | 1 + layout/rootfs/etc/s6-rc/source/init-utmp/type | 1 + layout/rootfs/etc/s6-rc/source/init-utmp/up | 3 +++ 6 files changed, 5 insertions(+) create mode 100644 layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/btmpd create mode 100644 layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/utmpd create mode 100644 layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/wtmpd create mode 100644 layout/rootfs/etc/s6-rc/source/init-utmp/down create mode 100644 layout/rootfs/etc/s6-rc/source/init-utmp/type create mode 100644 layout/rootfs/etc/s6-rc/source/init-utmp/up (limited to 'layout/rootfs/etc/s6-rc/source/init-utmp') diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/btmpd b/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/btmpd new file mode 100644 index 0000000..e69de29 diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/utmpd b/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/utmpd new file mode 100644 index 0000000..e69de29 diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/wtmpd b/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/wtmpd new file mode 100644 index 0000000..e69de29 diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/down b/layout/rootfs/etc/s6-rc/source/init-utmp/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-utmp/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/type b/layout/rootfs/etc/s6-rc/source/init-utmp/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-utmp/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/up b/layout/rootfs/etc/s6-rc/source/init-utmp/up new file mode 100644 index 0000000..6d61a8b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-utmp/up @@ -0,0 +1,3 @@ +backtick -E kversion { uname -r } +if { utmps-write -t 2000 -uw -l reboot -p 0 -h ${kversion} -- "~~" BOOT_TIME "~" } + utmps-write -t 2000 -uw -l runlevel -p 20018 -h ${kversion} -- "~~" RUN_LVL "~" -- cgit v1.3.1