From: Stefan Agner <[email protected]> Add system service for podman which starts a podman instance allow to access the new HTTP based API (apiv2).
Signed-off-by: Stefan Agner <[email protected]> --- recipes-containers/podman/podman_git.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb index c996028..aa6b25b 100644 --- a/recipes-containers/podman/podman_git.bb +++ b/recipes-containers/podman/podman_git.bb @@ -97,6 +97,12 @@ do_install() { if ${@bb.utils.contains('PACKAGECONFIG', 'docker', 'true', 'false', d)}; then oe_runmake install.docker DESTDIR="${D}" fi + if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${systemd_unitdir}/system + install -m 644 ${S}/src/import/contrib/systemd/system/podman.service ${D}/${systemd_unitdir}/system + install -m 644 ${S}/src/import/contrib/systemd/system/podman.socket ${D}/${systemd_unitdir}/system + rm -f ${D}/${systemd_unitdir}/system/docker.service.rpm + fi } FILES_${PN} += " \ @@ -106,6 +112,8 @@ FILES_${PN} += " \ ${sysconfdir}/cni \ " +SYSTEMD_SERVICE_${PN} = "podman.service podman.socket" + RDEPENDS_${PN} += "conmon virtual/runc iptables cni skopeo" RRECOMMENDS_${PN} += "slirp4netns" RCONFLICTS_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'docker', 'docker', '', d)}" -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#5206): https://lists.yoctoproject.org/g/meta-virtualization/message/5206 Mute This Topic: https://lists.yoctoproject.org/mt/71891371/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
