issue about classes/image-oci.bbclass
"Yiding Liu (Fujitsu)" <[email protected]>
| Newsgroups | org.yoctoproject.lists.meta-virtualization |
|---|---|
| Message-ID | <OS7PR01MB14444C313A7F44936A3D8EBB99B46A@OS7PR01MB14444.jpnprd01.prod.outlook.com> |
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 ?= ""
$ podman run --rm 70306dacdc4a
Tue Mar 10 06:27:42 UTC 2026
Liu