carbon-s6-init

s6-linux-init configuration for Carbon
git clone https://ccx.te2000.cz/git/carbon-s6-init
Log | Files | Refs

commit 292383b558890c598e71211884c6c1f5de867350
parent c572aef59b9f02ae17c4fa09ffd10efb4814fe3b
Author: root <root@dorje.v103.te2000>
Date:   Wed, 13 Jul 2022 15:05:25 +0000

console-log-tail service to show logs on boot

Diffstat:
Minstall | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/install b/install @@ -55,3 +55,13 @@ ifelse -X { foreground { $qc/s6-rc -v 2 -t 600000 -- change ok-all-but-tty } $qc/s6-rc -v 2 -t 600000 -- change ok-all EOF + +"$cmd/s6-mkdir" "$dst/init/init/run-image/service/console-log-tail" || exit $? +"$cmd/s6-cat" >"$dst/init/init/run-image/service/console-log-tail/run" <<EOF || exit $? +#!$qc/execlineb -P +redirfd -w 1 /dev/console +fdmove -c 2 1 +pipeline -w { s6-tai64nlocal } +tail -F /run/uncaught-logs/current +EOF +"$cmd/s6-chmod" +x >"$dst/init/init/run-image/service/console-log-tail/run" exit $?