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 <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2022-11-07 11:22:24 -05:00
parent 2aea6f9ab3
commit c005181688

View File

@ -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