Re: issue about classes/image-oci.bbclass

Bruce Ashfield <[email protected]>
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <CADkTA4Mt4E-Uj4G_Xrn9vK+imdA6WUaUGUNpopH3OrbyFSG=7A@mail.gmail.com>
On Tue, Mar 10, 2026 at 2:49 AM Yiding Liu (Fujitsu) <[email protected]>
wrote:

> Hi Bruce
>      I found an issue about OCI_IMAGE_CMD ?= "/bin/sh" when I use the
> container-app-base image.
>
>     $ podman run --rm f0d79291ef08
>      date: invalid date '/bin/sh'
>
>     The issue was caused by the Entrypoint and Cmd are both defined, and
> cmd will be the append args of date,
>     Which caused the output error.
>
>    $ podman inspect f0d79291ef08
>       ...
>           "Config": {
>                "Entrypoint": [
>                     "date"
>                ],
>                "Cmd": [
>                     "/bin/sh"
>                ],
>     ...
>
>    I think make OCI_IMAGE_CMD as empty can solve this issue, what do you
> think about it?
>    OCI_IMAGE_CMD ?= ""
>

Nope. You can override that yourself.

The current defaults have been extensively tested and modified just
recently to make the entrypoint work in more scenarios.

Check git history for all the details.

Bruce



>
>    $ podman run --rm 70306dacdc4a
>    Tue Mar 10 06:27:42 UTC 2026
>
> Liu
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.