@@ -1652,12 +1652,10 @@ image name, replacing all `/` with `.` and appending `:<tag>.zst`. Example:
To create a Debian package which can carry container images and load them into
local storage of docker or podman, there is a set of helpers available. To use
-them in an own recipe, add
-`require recipes-support/container-loader/docker-loader.inc` when using docker
-and `require recipes-support/container-loader/podman-loader.inc` when using
-podman. The loader will try to transfer the packaged image into the container
-runtime storage on boot, but only if no container image of the same name and
-tag is present already.
+them in an own recipe, add `inherit docker-loader` when using docker and
+`inherit podman-loader` when using podman. The loader will try to transfer the
+packaged image into the container runtime storage on boot, but only if no
+container image of the same name and tag is present already.
Unless `CONTAINER_DELETE_AFTER_LOAD` is set to `1`, the source container images
remain by default available and may be used again for loading the storage after
@@ -1675,7 +1673,7 @@ runtime services are installed on the target as well. The packaged image will
be deleted from the target device's rootfs after successful import.
```
-require recipes-support/container-loader/docker-loader.inc
+inherit docker-loader
CONTAINER_DELETE_AFTER_LOAD = "1"
similarity index 94%
rename from meta/recipes-support/container-loader/container-loader.inc
rename to meta/classes-recipe/container-loader.bbclass
@@ -1,12 +1,11 @@
# This software is a part of ISAR.
-# Copyright (c) Siemens AG, 2024
+# Copyright (c) Siemens AG, 2024-2025
#
# SPDX-License-Identifier: MIT
-FILESPATH:append := ":${FILE_DIRNAME}/files"
-
inherit dpkg-raw
+FILESPATH:append = ":${LAYERDIR_core}/recipes-support/container-loader/files"
SRC_URI += " \
file://container-loader.service.tmpl \
file://container-loader.sh.tmpl"
similarity index 70%
copy from meta/recipes-support/container-loader/docker-loader.inc
copy to meta/classes-recipe/docker-loader.bbclass
@@ -1,9 +1,9 @@
# This software is a part of ISAR.
-# Copyright (c) Siemens AG, 2024
+# Copyright (c) Siemens AG, 2024-2025
#
# SPDX-License-Identifier: MIT
-require container-loader.inc
+inherit container-loader
CONTAINER_ENGINE = "docker"
similarity index 68%
copy from meta/recipes-support/container-loader/podman-loader.inc
copy to meta/classes-recipe/podman-loader.bbclass
@@ -1,9 +1,9 @@
# This software is a part of ISAR.
-# Copyright (c) Siemens AG, 2024
+# Copyright (c) Siemens AG, 2024-2025
#
# SPDX-License-Identifier: MIT
-require container-loader.inc
+inherit container-loader
CONTAINER_ENGINE = "podman"
@@ -1,10 +1,13 @@
+# Transitional include for docker-loader.bbclass
+#
# This software is a part of ISAR.
-# Copyright (c) Siemens AG, 2024
+# Copyright (c) Siemens AG, 2025
#
# SPDX-License-Identifier: MIT
-require container-loader.inc
-
-CONTAINER_ENGINE = "docker"
+inherit docker-loader
-CONTAINER_ENGINE_PACKAGES ?= "docker.io, apparmor"
+do_warn_custom_inc() {
+ bbwarn "Please migrate from \"require recipes-support/container-loader/docker-loader.inc\" to \"inherit docker-loader\""
+}
+addtask warn_custom_inc before do_unpack
@@ -1,10 +1,13 @@
+# Transitional include for podman-loader.bbclass
+#
# This software is a part of ISAR.
-# Copyright (c) Siemens AG, 2024
+# Copyright (c) Siemens AG, 2025
#
# SPDX-License-Identifier: MIT
-require container-loader.inc
-
-CONTAINER_ENGINE = "podman"
+inherit podman-loader
-CONTAINER_ENGINE_PACKAGES ?= "podman"
+do_warn_custom_inc() {
+ bbwarn "Please migrate from \"require recipes-support/container-loader/podman-loader.inc\" to \"inherit podman-loader\""
+}
+addtask warn_custom_inc before do_unpack