From: "'Jan Kiszka' via isar-users" <isar-users@googlegroups.com>
To: isar-users <isar-users@googlegroups.com>
Cc: Silvano Cirujano-Cuesta <silvano.cirujano-cuesta@siemens.com>
Subject: [PATCH v2 1/2] imagetypes_container: Drop oci type
Date: Wed, 7 May 2025 18:43:50 +0200 [thread overview]
Message-ID: <2b26f04e5e6d121168201273f6153de2d178c9bb.1746636231.git.jan.kiszka@siemens.com> (raw)
In-Reply-To: <cover.1746636231.git.jan.kiszka@siemens.com>
From: Jan Kiszka <jan.kiszka@siemens.com>
This format was supported since the introduction of container images but
it was never documented. After revisiting its content and potential
purpose, it turned out that its use case would be rather theoretical and
that it can't be imported into common container services. So simply drop
it as "practically irrelevant".
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
RECIPE-API-CHANGELOG.md | 5 +++++
doc/user_manual.md | 2 +-
meta/classes/imagetypes_container.bbclass | 6 +-----
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
index a4cf1338..8468717d 100644
--- a/RECIPE-API-CHANGELOG.md
+++ b/RECIPE-API-CHANGELOG.md
@@ -722,3 +722,8 @@ Optional fields of the isar-apt repo can be controlled by adding to the
Changes in next
---------------
+
+### Drop unused container image format `oci`
+
+This was never documented and never had practical relevance. `oci-archive` is
+the useful OCI image format that can be imported, e.g., by podman.
diff --git a/doc/user_manual.md b/doc/user_manual.md
index 845823bb..ceac8294 100644
--- a/doc/user_manual.md
+++ b/doc/user_manual.md
@@ -273,7 +273,7 @@ https://github.com/intel/bmap-tools
### Generate container image with root filesystem
A runnable container image is generated if IMAGE_FSTYPES variable includes
-one of the supported container formats `oci`, `oci-archive`, `docker-archive`,
+one of the supported container formats `oci-archive`, `docker-archive`,
`docker-daemon`, or `containers-storage`.
Getting a container image can be the main purpose of an Isar configuration,
but not only.
diff --git a/meta/classes/imagetypes_container.bbclass b/meta/classes/imagetypes_container.bbclass
index 1a6f3669..60b65bd8 100644
--- a/meta/classes/imagetypes_container.bbclass
+++ b/meta/classes/imagetypes_container.bbclass
@@ -6,7 +6,7 @@
# This class provides the task 'containerize'
# to create container images containing the target rootfs.
-CONTAINER_TYPES = "oci oci-archive docker-archive docker-daemon containers-storage"
+CONTAINER_TYPES = "oci-archive docker-archive docker-daemon containers-storage"
USING_CONTAINER = "${@bb.utils.contains_any('IMAGE_BASETYPES', d.getVar('CONTAINER_TYPES').split(), '1', '0', d)}"
CONTAINER_IMAGE_NAME ?= "${PN}-${DISTRO}-${DISTRO_ARCH}"
@@ -87,10 +87,6 @@ convert_container() {
--tmpdir "${WORKDIR}" \
"oci:${oci_img_dir}:${tag}" "${target}"
;;
- "oci")
- tar --create --directory "${oci_img_dir}" \
- --file "${image_archive}" .
- ;;
"docker-daemon" | "containers-storage")
if [ -f /.dockerenv ] || [ -f /run/.containerenv ] ; then
die "Adding the container image to a container runtime (${container_type}) not supported if running from a container (e.g. 'kas-container')"
--
2.43.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/2b26f04e5e6d121168201273f6153de2d178c9bb.1746636231.git.jan.kiszka%40siemens.com.
next prev parent reply other threads:[~2025-05-07 16:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 16:43 [PATCH v2 0/2] Drop oci image type, update list of available types in documentation 'Jan Kiszka' via isar-users
2025-05-07 16:43 ` 'Jan Kiszka' via isar-users [this message]
2025-05-07 16:43 ` [PATCH v2 2/2] doc/user_manual: Add missing image types to overview 'Jan Kiszka' via isar-users
2025-05-27 5:23 ` [PATCH v2 0/2] Drop oci image type, update list of available types in documentation 'Jan Kiszka' via isar-users
2025-05-27 7:31 ` Baurzhan Ismagulov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2b26f04e5e6d121168201273f6153de2d178c9bb.1746636231.git.jan.kiszka@siemens.com \
--to=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
--cc=silvano.cirujano-cuesta@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox