-
Patching and building the kernel image
-
Clone the
pkgsrepository from Github and check out the revision corresponding to your version of Talos Linux -
Clone the Linux kernel and check out the revision that pkgs uses (this can be found in
kernel/kernel-prepare/pkg.yamland it will be something like the following:https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-x.xx.x.tar.xz) -
Your module will need to be converted to be in-tree.
The steps for this are different depending on the complexity of the module to port, but generally it would involve moving the module source code into the
driverstree and creating a new Makefile and Kconfig. -
Stage your changes in Git with
git add -A. -
Run
git diff --cached --no-prefix > foobar.patchto generate a patch from your changes. -
Copy this patch to
kernel/kernel/patchesin thepkgsrepo. -
Add a
patchline in thepreparesegment ofkernel/kernel/pkg.yaml: -
Build the kernel image.
Make sure you are logged in to
ghcr.iobefore running this command, and you can change or omitPLATFORMdepending on what you want to target. -
Make a note of the image name the
makecommand outputs.
-
Clone the
-
Building the installer image
-
Copy the following into a new
Dockerfile: -
Run to build and push the installer:
-
Copy the following into a new
-
Deploying to your cluster