Skip to content

Commit

Permalink
Correct entrypoint -> cmd for the init container
Browse files Browse the repository at this point in the history
The if condition is required due to
containers/podman#13324
  • Loading branch information
dcermak committed Feb 24, 2022
1 parent 3d8f5ef commit ccfd0c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bci_build/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
Expand Down

0 comments on commit ccfd0c1

Please sign in to comment.