Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/tini: restore use as docker-init
@ 2024-10-10 13:29 Fiona Klute via buildroot
  2024-10-10 13:29 ` [Buildroot] [PATCH 2/2] package/docker-engine: add optional dependency on tini Fiona Klute via buildroot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fiona Klute via buildroot @ 2024-10-10 13:29 UTC (permalink / raw)
  To: buildroot; +Cc: Fiona Klute (WIWA), Christian Stewart

From: "Fiona Klute (WIWA)" <fiona.klute@gmx.de>

Commit 24cac9c4e6a36fd14b263a8eecf7ae7d58ab5a59 "system: add tini as
init system" made BR2_PACKAGE_TINI depend on BR2_INIT_TINI. This is
incorrect: tini is not only needed when building a container image
using Buildroot, but also to run Docker containers on Buildroot
systems using another another init system, if Docker is configured to
provide an init process for the container (e.g. with "docker run
--init"). The tini package already provides the "docker-init" symlink
required for that.

Example error without tini installed:

$ docker run --rm -ti --init alpine
docker: Error response from daemon: exec: "docker-init": executable file not found in $PATH.

Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>
---
 package/tini/Config.in | 1 -
 1 file changed, 1 deletion(-)

diff --git a/package/tini/Config.in b/package/tini/Config.in
index bca8ad8e96..719e1e1f22 100644
--- a/package/tini/Config.in
+++ b/package/tini/Config.in
@@ -1,7 +1,6 @@
 config BR2_PACKAGE_TINI
 	bool "tini"
 	depends on BR2_USE_MMU # fork()
-	depends on BR2_INIT_TINI
 	help
 	  tini is a simple but valid init binary to
 	  act as PID 1 for containers.
--
2.45.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-10 21:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10 13:29 [Buildroot] [PATCH 1/2] package/tini: restore use as docker-init Fiona Klute via buildroot
2024-10-10 13:29 ` [Buildroot] [PATCH 2/2] package/docker-engine: add optional dependency on tini Fiona Klute via buildroot
2024-10-10 18:25 ` [Buildroot] [PATCH 1/2] package/tini: restore use as docker-init Christian Stewart via buildroot
2024-10-10 21:40 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox