From c005181688c391f950d5feb79df00cde025cee9b Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Mon, 7 Nov 2022 11:22:24 -0500 Subject: image-oci-umoci: add convenience symlink for oci image tar We have been symlinking the -oci image directory for a while, but we can also create a shorted convenience symlink for the tar'd version of that directory. Signed-off-by: Bruce Ashfield --- classes/image-oci-umoci.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'classes') diff --git a/classes/image-oci-umoci.inc b/classes/image-oci-umoci.inc index 7808a68c..38917d4f 100644 --- a/classes/image-oci-umoci.inc +++ b/classes/image-oci-umoci.inc @@ -108,6 +108,8 @@ IMAGE_CMD:oci() { # make a tar version of the image direcotry if [ -n "${OCI_IMAGE_TAR_OUTPUT}" ]; then tar -cf "$image_name.tar" "$image_name" + # create a convenience symlink + ln -sf "$image_name.tar" "${IMAGE_BASENAME}-${OCI_IMAGE_TAG}-oci.tar" fi # We could make this optional, since the bundle is directly runnable via runc -- cgit v1.2.3-54-g00ecf