From a67ed592df88248f3a9e167dc65c476741d8fc41 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 14 Dec 2024 09:45:50 -0600 Subject: [PATCH] tools: Install tini During development, we leave a container running and `exec` into it to run multiple commands. To keep the container running, we need a PID 1 process that never terminates, which we achieved previously with Python. This technically works, but ultimately leaves a lot of zombie processes. If we use a "true" init process for PID 1, it will clean these up. --- lib/tools.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tools.sh b/lib/tools.sh index 77983ca..eba0844 100755 --- a/lib/tools.sh +++ b/lib/tools.sh @@ -16,4 +16,5 @@ sys-fs/dosfstools sys-fs/genimage sys-fs/mtools sys-fs/squashfs-tools +tini EOF