diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-09-12 16:21:31 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-09-12 16:45:26 -0400 |
| commit | 4254c4a732c03ea66689f941276ac62aaac6c632 (patch) | |
| tree | 7029d359f878700379f996a625b217abcd6fe79c | |
| parent | c5ed5aa1e5860f2f8122d3c11388856bf43083b0 (diff) | |
| download | meta-virtualization-4254c4a732c03ea66689f941276ac62aaac6c632.tar.gz | |
image-oci-umoci: add convenience symlink to latest image
Symlink the date-time based image name, to just the imagename-oci.
This makes scripting use of the deployed container much simpler.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | classes/image-oci-umoci.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/image-oci-umoci.inc b/classes/image-oci-umoci.inc index f9417952..7808a68c 100644 --- a/classes/image-oci-umoci.inc +++ b/classes/image-oci-umoci.inc | |||
| @@ -112,4 +112,6 @@ IMAGE_CMD:oci() { | |||
| 112 | 112 | ||
| 113 | # We could make this optional, since the bundle is directly runnable via runc | 113 | # We could make this optional, since the bundle is directly runnable via runc |
| 114 | rm -rf $image_bundle_name | 114 | rm -rf $image_bundle_name |
| 115 | |||
| 116 | ln -sf $image_name ${IMAGE_BASENAME}-${OCI_IMAGE_TAG}-oci | ||
| 115 | } | 117 | } |
