Skip to contentSkip to conversation

docker: readd docker-init to RRECOMMENDS

PATCH In review Stefan Agner 2 participants 2 messages Jun 24, 2019 – Jun 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docker: readd docker-init to RRECOMMENDS

From: Stefan Agner <[email protected]>

If docker run --init is used docker expects docker-init to be present. However, it has been removed by commit d19fda374317 ("docker: consolidate common depends/options"). Readd docker-init to RRECOMMENDS to make sure its typically deployed.

---
 recipes-containers/docker/docker.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/docker/docker.inc +1 -1
index 168d296..e4ff353 100644
@@ -29,7 +29,7 @@ RDEPENDS_${PN} = "util-linux util-linux-unshare iptables \
                  "
 RDEPENDS_${PN} += "virtual/containerd virtual/runc"
 
-RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat"
+RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat docker-init"
 
 inherit pkgconfig
 PACKAGECONFIG ??= ""
Signature · 1 line
2.13.6
#1 lore raw
Quoted 8 lines · Stefan Agner

From: Stefan Agner <[email protected]>

If docker run --init is used docker expects docker-init to be present. However, it has been removed by commit d19fda374317 ("docker: consolidate common depends/options"). Readd docker-init to RRECOMMENDS to make sure its typically deployed.

The more I think about it, this should either just be a RDEPENDS all the time .. or a PACKAGECONFIG RDEPENDS.

Since it is functionality that docker may look for, the RRECOMMENDS seems to weak.

Making it a packageconfig gives us the most flexibility, since it hasn't been installed since I did the re-work, and no one else has noticed :D So if we make it a packageconfig, it is trivial to add for anyone that wants it, and we can consider making it a default packageconfig in the fall release.

Bruce

Quoted 21 lines
---
 recipes-containers/docker/docker.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/docker/docker.inc +1 -2
index 168d296..e4ff353 100644
@@ -29,7 +29,7 @@ RDEPENDS_${PN} = "util-linux util-linux-unshare iptables \
                  "
 RDEPENDS_${PN} += "virtual/containerd virtual/runc"
 
-RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat"
+RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat docker-init"
 
 inherit pkgconfig
 PACKAGECONFIG ??= ""
--

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