Create a system extension that includes kernel modules.
.kres.yaml
file in the root of the repository.
We use this file for templating and generating Makefiles.
Put your out-of-tree kernel module below the comment for dependent packages.
make
target to build your module and a directory to store your module configuration.
The next step is to create a pkg.yaml
file to tell bldr
how to create a container with the files you need.
The bldr
tool has assumptions about directory structure and steps you can read about in the GitHub repo.
This example does not build a kernel module, but it can be used as a basis for your own packages.
Please also see existing pkg.yaml files in the pkgs repo
$KERNEL_IMAGE
and $PKG_IMAGE
variables.
.kres.yaml
file.
manifest.yaml
file for the metadata of your extension in the my-module folder.
/pkg
so we can copy files from that directory.
${EXTENSION_IMAGE}
.
$BASE_INSTALLER_IMAGE
.
Create an installer image from your extension and the installer-base you just created with the following command.
_out/
folder of our repository.
Load and push the container image to a registry with crane.
Make sure you replace $REGISTRY
, $USER
, and $TAG
with the values you want.
crane
:
.ko
file you built in the package and put in the /modules
directory.