Trusted Boot Upgrades
Warning
This section is still a work in progress and only available in Kairos v3.x releases and alphas.This section covers how to upgrade a Kairos node with Trusted Boot enabled.
See the Trusted Boot Installation and Trusted Boot Architecture pages for more references.
Upgrades
In order to upgrade a node to a new version of the OS, you need to generate again the installable medium with the same keys used in the steps before.
Note
The resulting container image can be used for upgrades withkairos-agent
.
The process will generate an EFI file which we will pack into a container image that will be used to upgrade the node.
First we need to extract the EFI file from the ISO file generated with what explained in the Trusted Boot Installation documentation:
Warning
This step is required until #2171 is implemented.Generate the upgrade image
- Build the container image used to generate the upgrade image
- Build the Container image used for upgrades
- Push the upgrade image to a registry
Upgrades with Kubernetes
In order to upgrade with Kubernetes using system upgrade controller plans you can use the image used to generate the installable medium, and use it as a base image for the upgrade image.
When invoking kairos-agent
in the plan however, you need to specify the --source
flag to point to the image that contains the UKI file.
In the following example <CONTAINER_IMAGE>
is the source image used to generate the upgrade image, <CONTAINER_IMAGE_TAG>
is the tag of that image and <UPGRADE_IMAGE>
is the generated upgrade image (tag included) as per the documentation above.
Note
To understand more on how this works, see the example here regarding the system upgrade controller and thesuc-upgrade.sh
script
which is used for regular (non trusted boot) upgrades.
Reference
Generate the upgrade image manually
You can also manually generate the container image:
Feedback
Was this page helpful?
Awesome! Glad to hear it! Please tell us how we can improve.
Oh snap! Sorry to hear that. Please tell us how we can improve.