summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2022-11-07 11:22:24 -0500
committerBruce Ashfield <bruce.ashfield@gmail.com>2022-12-07 16:12:33 -0500
commitc005181688c391f950d5feb79df00cde025cee9b (patch)
tree573fa2d10c604eecd1f33d59642dadd67ac86a47 /classes
parent2aea6f9ab3f2bbec7cc3c162db5383fdd8ba29ea (diff)
downloadmeta-virtualization-c005181688c391f950d5feb79df00cde025cee9b.tar.gz
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>
Diffstat (limited to 'classes')
-rw-r--r--classes/image-oci-umoci.inc2
1 files changed, 2 insertions, 0 deletions
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() {
108 # make a tar version of the image direcotry 108 # make a tar version of the image direcotry
109 if [ -n "${OCI_IMAGE_TAR_OUTPUT}" ]; then 109 if [ -n "${OCI_IMAGE_TAR_OUTPUT}" ]; then
110 tar -cf "$image_name.tar" "$image_name" 110 tar -cf "$image_name.tar" "$image_name"
111 # create a convenience symlink
112 ln -sf "$image_name.tar" "${IMAGE_BASENAME}-${OCI_IMAGE_TAG}-oci.tar"
111 fi 113 fi
112 114
113 # We could make this optional, since the bundle is directly runnable via runc 115 # We could make this optional, since the bundle is directly runnable via runc