From ccfd0c114ba478951a51488e05094b8df2e25f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Thu, 24 Feb 2022 12:10:22 +0100 Subject: [PATCH] Correct entrypoint -> cmd for the init container The if condition is required due to https://github.com/containers/podman/issues/13324 --- src/bci_build/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bci_build/package.py b/src/bci_build/package.py index 16e6d658b..24cd70c22 100755 --- a/src/bci_build/package.py +++ b/src/bci_build/package.py @@ -923,7 +923,11 @@ def _get_openjdk_kwargs(sp_version: int, devel: bool): name="init", pretty_name="Init", package_list=["systemd", "gzip"], - entrypoint="/usr/lib/systemd/systemd", + cmd=( + '["/usr/lib/systemd/systemd"]' + if build_recipe_type == BuildType.DOCKER + else "/usr/lib/systemd/systemd" + ), extra_labels={ "usage": "This container should only be used to build containers for daemons. Add your packages and enable services using systemctl." },