Add an optional parameter that allows to override the stop signal that is used.
Signed-off-by: Vasileios Anagnostopoulos <[email protected]> --- classes/image-oci-umoci.inc | 4 ++++ classes/image-oci.bbclass | 1 + 2 files changed, 5 insertions(+) diff --git a/classes/image-oci-umoci.inc b/classes/image-oci-umoci.inc index b159614..f941795 100644 --- a/classes/image-oci-umoci.inc +++ b/classes/image-oci-umoci.inc @@ -82,6 +82,10 @@ IMAGE_CMD:oci() { bbdebug 1 "umoci config --image $image_name:${OCI_IMAGE_TAG} --config.workingdir ${OCI_IMAGE_WORKINGDIR}" umoci config --image $image_name:${OCI_IMAGE_TAG} --config.workingdir ${OCI_IMAGE_WORKINGDIR} fi + if [ -n "${OCI_IMAGE_STOPSIGNAL}" ]; then + bbdebug 1 "umoci config --image $image_name:${OCI_IMAGE_TAG} --config.stopsignal ${OCI_IMAGE_STOPSIGNAL}" + umoci config --image $image_name:${OCI_IMAGE_TAG} --config.stopsignal ${OCI_IMAGE_STOPSIGNAL} + fi if [ -n "${OCI_IMAGE_OS}" ]; then bbdebug 1 "umoci config --image $image_name:${OCI_IMAGE_TAG} --os ${OCI_IMAGE_OS}" umoci config --image $image_name:${OCI_IMAGE_TAG} --os ${OCI_IMAGE_OS} diff --git a/classes/image-oci.bbclass b/classes/image-oci.bbclass index 7a39d27..9ddb88b 100644 --- a/classes/image-oci.bbclass +++ b/classes/image-oci.bbclass @@ -58,6 +58,7 @@ OCI_IMAGE_SUBARCH ?= "${@oci_map_subarch(d.getVar('TARGET_ARCH'), d.getVar('TUNE OCI_IMAGE_ENTRYPOINT ?= "sh" OCI_IMAGE_ENTRYPOINT_ARGS ?= "" OCI_IMAGE_WORKINGDIR ?= "" +OCI_IMAGE_STOPSIGNAL ?= "" # List of ports to expose from a container running this image: # PORT[/PROT] -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#7442): https://lists.yoctoproject.org/g/meta-virtualization/message/7442 Mute This Topic: https://lists.yoctoproject.org/mt/92331694/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
