The entrypoint to a container is actually an array of the command with arguments to run, not just as single scalar. To handle this in umoci, the --config.entrypoint is passed multiple times in a single invocation, so implement that in the image class
Signed-off-by: Joshua Watt <jpewhac...@gmail.com> --- classes/image-oci-umoci.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/image-oci-umoci.inc b/classes/image-oci-umoci.inc index 58e4668..6c7f244 100644 --- a/classes/image-oci-umoci.inc +++ b/classes/image-oci-umoci.inc @@ -99,7 +99,7 @@ IMAGE_CMD:oci() { bbnote "OCI: image subarch is set to: ${OCI_IMAGE_SUBARCH}, but umoci does not" bbnote " expose variants. use sloci instead if this is important" fi - umoci config --image $image_name:${OCI_IMAGE_TAG} --config.entrypoint ${OCI_IMAGE_ENTRYPOINT} + umoci config --image $image_name:${OCI_IMAGE_TAG} ${@" ".join("--config.entrypoint %s" % s for s in d.getVar("OCI_IMAGE_ENTRYPOINT").split())} if [ -n "${OCI_IMAGE_ENTRYPOINT_ARGS}" ]; then umoci config --image $image_name:${OCI_IMAGE_TAG} --config.cmd "${OCI_IMAGE_ENTRYPOINT_ARGS}" fi -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8352): https://lists.yoctoproject.org/g/meta-virtualization/message/8352 Mute This Topic: https://lists.yoctoproject.org/mt/101921826/21656 Group Owner: meta-virtualization+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-