Skip to contentSkip to conversation

docker: make docker-init a runtime dependency by default

PATCH In review Stefan Agner 2 participants 2 messages Jun 28, 2019 – Jul 3, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docker: make docker-init a runtime dependency by default

From: Stefan Agner <[email protected]>

If docker run --init is used docker expects docker-init to be
present, if not Docker fails to start the container with the
following error:
docker: Error response from daemon: exec: "docker-init": executable file not found in $PATH.

However, docker-init does not get deployed by default since commit d19fda374317 ("docker: consolidate common depends/options"). Readd docker-init through a PACKAGECONFIG RDEPENDS to make sure it gets deployed by default again.

---
 recipes-containers/docker/docker.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-containers/docker/docker.inc +2 -1
index 168d296..eacaf7f 100644
@@ -32,8 +32,9 @@ RDEPENDS_${PN} += "virtual/containerd virtual/runc"
 RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat"
 
 inherit pkgconfig
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "docker-init"
 PACKAGECONFIG[seccomp] = "seccomp,,libseccomp"
+PACKAGECONFIG[docker-init] = ",,,docker-init"
 
 inherit systemd update-rc.d
 
Signature · 1 line
2.13.6
#1 lore raw

merged

Bruce

Quoted 36 lines · Stefan Agner

From: Stefan Agner <[email protected]>

If docker run --init is used docker expects docker-init to be
present, if not Docker fails to start the container with the
following error:
docker: Error response from daemon: exec: "docker-init": executable file not found in $PATH.

However, docker-init does not get deployed by default since commit d19fda374317 ("docker: consolidate common depends/options"). Readd docker-init through a PACKAGECONFIG RDEPENDS to make sure it gets deployed by default again.

---
 recipes-containers/docker/docker.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-containers/docker/docker.inc +2 -2
index 168d296..eacaf7f 100644
@@ -32,8 +32,9 @@ RDEPENDS_${PN} += "virtual/containerd virtual/runc"
 RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat"
 
 inherit pkgconfig
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "docker-init"
 PACKAGECONFIG[seccomp] = "seccomp,,libseccomp"
+PACKAGECONFIG[docker-init] = ",,,docker-init"
 
 inherit systemd update-rc.d
 
--

2.13.6

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II