From 2aea6f9ab3f2bbec7cc3c162db5383fdd8ba29ea Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Mon, 7 Nov 2022 11:21:30 -0500 Subject: image-oci-sloci: add convenience symlinks in deploy To sync the sloci OCI image backend with the umoci variant, create shortened convenience symlinks for the image and image.tar in the deploy directory. Signed-off-by: Bruce Ashfield --- classes/image-oci-sloci-image.inc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'classes') diff --git a/classes/image-oci-sloci-image.inc b/classes/image-oci-sloci-image.inc index 7aef3ae4..379f6fe0 100644 --- a/classes/image-oci-sloci-image.inc +++ b/classes/image-oci-sloci-image.inc @@ -64,4 +64,11 @@ IMAGE_CMD:oci() { ${oci_image_working_dir_options} \ ${oci_image_port_options} \ ${IMAGE_ROOTFS} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}-oci:${OCI_IMAGE_TAG} + + # create a convenience symlink + ln -sf ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}-oci ${IMAGE_BASENAME}-${OCI_IMAGE_TAG}-oci + + if [ -n "${OCI_IMAGE_TAR_OUTPUT}" ]; then + ln -sf ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}-oci-${OCI_IMAGE_TAG}-${OCI_IMAGE_ARCH}-linux.oci-image.tar ${IMAGE_BASENAME}-${OCI_IMAGE_TAG}-oci.tar + fi } -- cgit v1.2.3-54-g00ecf