From 85beb6ba2810ebeda74bbb5dab405ec697b8da02 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Fri, 17 Feb 2023 15:14:01 -0500 Subject: containers: introduce container-host class Introducing a small (at the moment) class that represents configuration and processing required to prepare a target image to be a container host. A recipe that requires container configuration should inherit this class, and the container-host-config package will be added as a RDEPENDS, and install common configuration files. In the future, additional functionality or dependencies will be added here to synchronize the configuration of multiple container host packages. Signed-off-by: Bruce Ashfield --- classes/container-host.bbclass | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 classes/container-host.bbclass (limited to 'classes') diff --git a/classes/container-host.bbclass b/classes/container-host.bbclass new file mode 100644 index 00000000..99a75fea --- /dev/null +++ b/classes/container-host.bbclass @@ -0,0 +1,15 @@ +# This class is the collection point for automatic dependencies, +# package installs, rootfs postprocessing, etc, that are used +# by container host images and recipes. + +# It currently is largely empty, and simply adds RDEPENDS, but +# will expand to CRI/CNI configurations in the future. +# + +RDEPENDS:${PN}:append = " container-host-config" + +do_install:append() { + # placeholder for additional package install, or configuration + # of the rootfs + true +} -- cgit v1.2.3-54-g00ecf