Zum Inhalt springen

Using overlays

Diese Seite ist noch nicht in deiner Sprache verfügbar. Englische Seite aufrufen

Overlays customize a Talos Linux boot image by integrating with the installation steps. They let users add boot assets, like those needed for single-board computers, provide extra kernel arguments, or include custom configurations specific to that overlay and not part of the default Talos installation. Overlays are similar to extensions but are used to modify the installation process rather than the root filesystem. They are often used to customize the installation process for single board computers (SBCs) such as the Raspberry Pi.

In this example, we’ll create an image using an overlay for a Raspberry Pi 4b SBC. Beware that you cannot use the resulting image with other SBCs. Please be aware, that compatibility with certain SBCs is limited to the platforms supported by Talos and read about the current limitations, as stated in the FAQ section.

Prerequisites:

Steps:

  1. Follow the generic image creation steps, as described in the getting started guide.

  2. In the step that allows you to select an overlay image, choose the one called rpi_generic.

    A screenshot from the STACKIT Edge Cloud web interface, showing the first step in the "Create Image" wizard. The wizard title is "Configure and create a new image step-by-step for your desired platform." On the left, the dark navigation menu is visible with "Images" selected under the "ASSETS" section. The main form fields are: 1. Image Name, pre-filled with rpi4. 2. Image Version, set to v1.10.5-stackit.v0.22.0 via a dropdown menu. 3. A checkbox for "Only Release Version" is visible. 4. Image Overlay, set to rpi_generic (stcreg.azurecr.io/stackit/sbc-raspberrypi.1.5) via a dropdown menu. A "Next →" button is on the bottom right to proceed to the next step.

  3. Follow the remaining image creation steps. The resulting review should indicate, that your overlay is included in the image. It’ll be part of any installation medium generated from this image. Click the “create” button to create the image.

    A screenshot from the STACKIT Edge Cloud web interface, showing the "Review" step of the "Create Image" wizard. This step summarizes the configuration chosen in the previous step before final creation. The configuration parameters displayed are: 1. Image Name: rpi4. 2. Image Version: v1.10.5-stackit.v0.22.0. 3. Image Overlay: rpi_generic. 4. Image Extensions: None. 5. Image Kernel Parameters: None. A "← Back" button is on the left and a "Create" button is on the right, indicating the end of the image creation process. The layout, including the dark navigation menu with "Images" selected, is consistent with the previous step.

  4. The rest of the process is identical to the regular image creation procedure.

Currently, the only way to get a list of all available image versions, overlays, or extensions, is to query the STEC image factory. The following example shows how to use the API to get a list of Talos overlays.

Terminal window
# get available overlays
> INSTANCE_REGION="eu01"
> curl https://image-factory.edge.$INSTANCE_REGION.stackit.cloud/versions
[
"v1.10.5-stackit.v0.20.0",
"v1.10.5-stackit.v0.21.0",
"..."
]
> IMAGE_VERSION="v1.10.5-stackit.v0.20.0"
> curl https://image-factory.edge.$INSTANCE_REGION.stackit.cloud/version/$IMAGE_VERSION/overlays/official
[
{
"name": "rpi_generic",
"image": "siderolabs/sbc-raspberrypi",
"ref": "stecreg.azurecr.io/siderolabs/sbc-raspberrypi:v0.1.5",
"digest": "sha256:70a1b174a5bddd57da33e377af324c1f93d7ed87b9bc8f6cdefe5ec179abb4c9"
},
"..."
]