-
Notifications
You must be signed in to change notification settings - Fork 107
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
many: take repositories from the "images" library #4554
base: main
Are you sure you want to change the base?
Conversation
15a7a63
to
ad41d86
Compare
This is a mirror of osbuild/osbuild-composer#4578 to update the gpg keys. Once osbuild/osbuild-composer#4554 is merged there should be no drift anymore.
0a86a28
to
e0743e2
Compare
This is a mirror of osbuild/osbuild-composer#4578 to update the gpg keys. Once osbuild/osbuild-composer#4554 is merged there should be no drift anymore.
e0743e2
to
68b18bb
Compare
68b18bb
to
c4c809d
Compare
repositories/README.md
Outdated
|
||
Most are imported via the "vendor" mechanism, but some special | ||
repositories are kept here, like the `*-no-aux-key.json` that | ||
is only installed on rhel-8. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not true and needs to be "-no-aux-keys.json" is only installed on rhel-10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, this is a typo. Those are el8 repos installed only on el10.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this now with a better explaination.
This commit changes the spec file so that most of the repositories are taken from the `images` library. See images PR#1112 for details. Note that we still need the -no-auth-keys and the centos-stream symlinks.
This commit runs go mod to get the latest changes.
This commit updates the cloudapi test that uses the real repositories to use the version of those from the "images" library. Composer no longer carries the default repos. Note that this can most likely be simplified once osbuild/images#1179 is merged.
c4c809d
to
7722d3e
Compare
Note that we added fedora-42 to the repositories in "images" recently (c.f. osbuild/images#1183) - having this PR would mean we get the update automatically :) |
%endif | ||
|
||
%else | ||
|
||
%if 0%{?rhel} | ||
# RHEL 10 supports building all RHEL versions | ||
%if 0%{?rhel} >= 10 | ||
for REPO_FILE in $(ls repositories/rhel-* | grep -v 'no-aux-key'); do | ||
for REPO_FILE in $(ls vendor/github.com/osbuild/images/data/repositories/rhel-* | grep -v 'no-aux-key'); do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling grep
is no longer needed since there are no -no-aux-key
repos in `images, right?
@@ -183,13 +184,13 @@ done | |||
|
|||
%else | |||
# All other RHEL versions support building for the same version | |||
for REPO_FILE in $(ls repositories/rhel-%{rhel}* | grep -v 'no-aux-key'); do | |||
for REPO_FILE in $(ls vendor/github.com/osbuild/images/data/repositories/rhel-%{rhel}* | grep -v 'no-aux-key'); do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling grep
is no longer needed since there are no -no-aux-key
repos in `images, right?
install -m 0644 -vp ${REPO_FILE} %{buildroot}%{_datadir}/osbuild-composer/repositories/$(basename ${REPO_FILE}) | ||
done | ||
|
||
# RHEL 9 supports building also for RHEL 8 | ||
%if 0%{?rhel} == 9 | ||
for REPO_FILE in $(ls repositories/rhel-8* | grep -v 'no-aux-key'); do | ||
for REPO_FILE in $(ls vendor/github.com/osbuild/images/data/repositories/rhel-8* | grep -v 'no-aux-key'); do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling grep
is no longer needed since there are no -no-aux-key
repos in `images, right?
This commit changes the spec file so that most of the repositories are taken from the
images
library. See images PR#1112 for details.Note that we still need the -no-auth-keys and the centos-stream symlinks - and we probably need to think about the handling of -no-auth-keys and if it could move under a different "tree" in images or something (like github.com/osbuild/images/data/repositories for the general case and github.com/osbuild/images/data/repositories/no-aux-keys subdir with the same file names or even repositories/for-rhel10 or something like this) but this should be ready for a first round of reviews now.
(see osbuild/images#1112)