-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kairos-agent upgrade on custom images fails with missing /etc/os-release keys #1548
Comments
I think the problem is that the following step: Line 111 in 9b3887a
is run when building the base images. So when using BYOI it is missing, or at least I couldn't find it on AuroraBuild/osbuilder |
I think either osbuilder offer a mechanism how to do this (and then it can be used on the main factory as well), or it should be part of the documentation for BYOI. Having said that, it will be the job of the user doing BYOI to define all or most of the values that go there, e.g. keep their own versioning because at the end of the day, they can decide on the cadence of release and it doesn't fit that they keep the same versioning of our releases. Alternatively we could do something like what we do with the k3s version, and when building the BYOI the final version would be something along the lines of KAIROS_VERSION+OWN_VERSION |
Let's do 2 things:
|
@venkatnsrinivasan we added functionality on the osbuilder to update the attributes in the os-release. The docs have been updated to reflect this
|
@mauromorales I guess we can close this now? |
It still needs a bump in the agent to check the two items Dimitris added but it comes together with the yip bump so I'm running some tests in a branch |
@mudler ⬆️ |
Agent has been bumped on Kairos. It will be available in the next release. Please don't hesitate to re-open if you encounter any issues. |
We built a custom image for RHEL 8 with the steps outlined here
https://kairos.io/docs/reference/build-from-scratch/
The resulting image has an /etc/os-release as below.
This image is able to be deployed successfully but when trying and upgrade via kairos-agent upgrade in Kairos 2.2.0 the upgrade fails with
Cant find IMAGE_REPO key under /etc/os-release
The text was updated successfully, but these errors were encountered: