summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2022-11-07 11:21:30 -0500
committerBruce Ashfield <bruce.ashfield@gmail.com>2022-12-07 16:12:33 -0500
commit2aea6f9ab3f2bbec7cc3c162db5383fdd8ba29ea (patch)
tree51f198025bfa420f4987886a8e649df4d8431401 /classes
parentc66e392d8ef72734cdabf63ddf2e340eb7ab89a8 (diff)
downloadmeta-virtualization-2aea6f9ab3f2bbec7cc3c162db5383fdd8ba29ea.tar.gz
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 <bruce.ashfield@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image-oci-sloci-image.inc7
1 files changed, 7 insertions, 0 deletions
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() {
64 ${oci_image_working_dir_options} \ 64 ${oci_image_working_dir_options} \
65 ${oci_image_port_options} \ 65 ${oci_image_port_options} \
66 ${IMAGE_ROOTFS} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}-oci:${OCI_IMAGE_TAG} 66 ${IMAGE_ROOTFS} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}-oci:${OCI_IMAGE_TAG}
67
68 # create a convenience symlink
69 ln -sf ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}-oci ${IMAGE_BASENAME}-${OCI_IMAGE_TAG}-oci
70
71 if [ -n "${OCI_IMAGE_TAR_OUTPUT}" ]; then
72 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
73 fi
67} 74}