oracle: Add support for Oracle Linux 9 and 10#2404
Conversation
|
@lrochfort very nice! I'll take a deeper look during the week. |
supakeen
left a comment
There was a problem hiding this comment.
I've done a first pass over the Go-code bits that were adjusted; let's address those first (I think most things are relatively minor, and some questions) before I dive into the YAML.
5191877 to
d2ff55d
Compare
|
@supakeen, thank you for reviewing. I've updated my fork and pushed. Could you please take a look when you have time. |
Thanks I'll take another look and focus on the YAML this time (and the other bits that were addressed). |
There was a problem hiding this comment.
Ok, I've gone through the YAML. Most important to me is that this change doesn't affect any other image types. Currently it does affect things and OL10 doesn't build due to a package being both included and excluded at the same time. I've attached a patch that addresses the comments I've made.
For me personally I don't care about a bit of the duplication here in the conditions, we are planning/plotting to address this in the future but that burden shouldn't particularly fall on @lrochfort.
See attached patch, please apply with git am < ... and then squash it into your own commits that changes the relevant image definitions before you force-push.
0001-review-fix-up-Oracle-Linux-definitions.patch
After applying that patch everything dependency solves correctly and at least Oracle Linux 9's QCOW2 image builds successfully on my system.
Oracle Linux 10 does not because it seems like we're getting sha1 hashes for the packages which we do not accept; I'll look into that today to see where those come from (from OL repositories, or if it's internal to us).
Re the hashes, we work around this on our side by running image-builder with --use-librepo=False. If you have any suggestion as how to resolve it better, then we'd certainly appreciate it. |
d2ff55d to
e7c8563
Compare
Ack, thank you @supakeen Applied and pushed to my fork. |
e7c8563 to
b3ecd59
Compare
I looked into this and it seems that OL10 repository metadata contains SHA1 checksums while OL9 repodata contains SHA256 checksums. Fixing the EL10 repository metadata to use SHA256 checksums would make everything work. Using Otherwise we could accept SHA1 checksums in the |
| exclude: | ||
| - "dracut-config-rescue" |
There was a problem hiding this comment.
This hunk needs to go into the previous commit (3b9570264a8a8b9ac286fd15039f99fd43b4e820).
There was a problem hiding this comment.
Updated and pushed
|
One last fix to the definitions which should make CI go green afterwards (if I got everything right). That leaves only the repository checksums to resolve. |
b3ecd59 to
a9e3d09
Compare
|
@supakeen, the manifest checksum test is failing for my second commit: I'm not sure the best way to handle that, given we wanted to restrict hostonly to Oracle Linux for now. |
If you reorder the commits and put 32aa54a after 65deabb things should work. Be sure to regenerate the checksums at each commit and squash them into the commit if anything changed 🙂 |
Add runner for Oracle Linux 9 & 10. Signed-off-by: Laurence Rochfort <laurence.rochfort@oracle.com> Reviewed-by: Alex Burmashev <alexander.burmashev@oracle.com>
Oracle Linux distro definition names only include the major version, so format the returned distro name accordingly. Signed-off-by: Laurence Rochfort <laurence.rochfort@oracle.com> Reviewed-by: Alex Burmashev <alexander.burmashev@oracle.com>
Oracle Cloud Infrastructure (OCI) image type definitions set a "hostonly" option. Make the distro and manifest modules detect that so we can then add a dracut stage to enable early microcode loading and reproducible dracut builds. Signed-off-by: Laurence Rochfort <laurence.rochfort@oracle.com> Reviewed-by: Alex Burmashev <alexander.burmashev@oracle.com>
Signed-off-by: Laurence Rochfort <laurence.rochfort@oracle.com>
Add support for OL 9 & 10. Add support for Oracle Cloud Infrastructure (OCI) hybrid images Signed-off-by: Laurence Rochfort <laurence.rochfort@oracle.com> Reviewed-by: Alex Burmashev <alexander.burmashev@oracle.com>
Adding so that it can be referenced from image-builder etc. For now it just inherits from qcow2, but lets us add customization later as needed. Signed-off-by: Laurence Rochfort <laurence.rochfort@oracle.com> Reviewed-by: Alex Burmashev <alexander.burmashev@oracle.com> Small adjustments to the definitions to ensure they do not touch any other image types for RHEL or CentOS and that they dependency solve correctly. Co-developed-by: Simon de Vlieger <cmdr@supakeen.com>
a9e3d09 to
fb83b8b
Compare
supakeen
left a comment
There was a problem hiding this comment.
Looks like that resolved everything and no checksums changed. Now the only question is if we want to merge this before or after the osbuild release that contains the SHA1 allowance for librepo.
And if we wait until after; if we want to bump the dependency.
Otherwise this looks good to me!!
Entirely up to you. From our side, it would be nice to have the dependency bumped so we can sync both our packages with upstream and inherit the changes |
Let's do that then; there should be a release of |
achilleas-k
left a comment
There was a problem hiding this comment.
Nice work, thank you!
LGTM
|
Flake-failure on the merge queue. Sorry about that. Re-queueing. |
This PR adds new distro entries for Oracle Linux 9 and 10.
Support for the following targets has been successfully tested internally using image-builder: