mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
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:
parent
2aea6f9ab3
commit
c005181688
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user