All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH 1/3] docker: Fix for sysvinit
@ 2021-07-16 15:41 Leon Anavi
  2021-07-16 15:41 ` [meta-virtualization][PATCH 2/3] python3-bugsnag: Upgrade 4.0.2 -> 4.1.0 Leon Anavi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Leon Anavi @ 2021-07-16 15:41 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Leon Anavi

Fix for rare legacy systems which still use simultaneously both
sysvinit and systemd in DISTRO_FEATURES. This fix avoids issues
during do_rootfs with postinstall scriptlets of ['docker-ce'].

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 recipes-containers/docker/docker.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc
index cd4d27b..610da56 100644
--- a/recipes-containers/docker/docker.inc
+++ b/recipes-containers/docker/docker.inc
@@ -120,7 +120,8 @@ do_install() {
 		# replaces one copied from above with one that uses the local registry for a mirror
 		install -m 644 ${S}/src/import/contrib/init/systemd/docker.service ${D}/${systemd_unitdir}/system
 		rm -f ${D}/${systemd_unitdir}/system/docker.service.rpm
-	else
+	fi
+	if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
 		install -d ${D}${sysconfdir}/init.d
 		install -m 0755 ${WORKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init
 	fi
-- 
2.17.1


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

end of thread, other threads:[~2021-07-21  2:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-16 15:41 [meta-virtualization][PATCH 1/3] docker: Fix for sysvinit Leon Anavi
2021-07-16 15:41 ` [meta-virtualization][PATCH 2/3] python3-bugsnag: Upgrade 4.0.2 -> 4.1.0 Leon Anavi
2021-07-16 15:41 ` [meta-virtualization][PATCH 3/3] python3-docker-compose: Upgrade 1.29.1 -> 1.29.2 Leon Anavi
2021-07-21  2:51 ` [meta-virtualization][PATCH 1/3] docker: Fix for sysvinit Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.