Closed nicolaspernoud closed 3 months ago
@nicolaspernoud while running docker run \ -ti \ --rm \ -v /var/run/docker.sock:/var/run/docker.sock \ -v $PWD/keys:/keys \ -v $PWD/build:/work \ enki \ build-uki $CONTAINER_IMAGE \ -t container \ -d /work/upgrade-image \ -k /keys
It generates a container image which you later import with: docker load -i build/upgrade-image/*.tar
That's the image that needs to be used for the upgrades - not $CONTAINER_IMAGE
.
The docs needs improvements here, it's not really clear indeed by looking at https://kairos.io/docs/upgrade/trustedboot/
Thanks, that did work after tagging the image. It is true that the documentation is not so clear.
@mudler : by the way, building enki from source and building an uki before building the container image seems useless. Here is a minimal working process : https://github.com/nicolaspernoud/kairos-assessment Precisely : https://github.com/nicolaspernoud/kairos-assessment/blob/main/02_build_update_image_and_deploy_with_ssh.sh
Kairos version:
CPU architecture, OS, and Version:
Linux localhost 6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 21:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug Building an upgrade image with the same base image and the same keys as the first image does not work.
To Reproduce First, we create an image, a VM and deploy Kairos on it :
Then we try to make an upgrade image and deploy it with ssh :
Expected behavior The image should update...
Logs
Additional context The bash snippet provided should be self sufficients to perform the test. What is the purpose of building an uki before the container image in the upgrade process ?