-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,20 +159,21 @@ install -m 0755 -vd %{buildroot}% | |
|
||
# Latest CentOS supports building all CentOS versions | ||
%if 0%{?centos} >= 10 | ||
install -m 0644 -vp repositories/centos-* %{buildroot}%{_datadir}/osbuild-composer/repositories/ | ||
install -m 0644 -vp vendor/github.com/osbuild/images/data/repositories/centos-* %{buildroot}%{_datadir}/osbuild-composer/repositories/ | ||
|
||
%else | ||
# All other CentOS versions support building for the same version | ||
install -m 0644 -vp repositories/centos-%{centos}* %{buildroot}%{_datadir}/osbuild-composer/repositories/ | ||
install -m 0644 -vp repositories/centos-stream-%{centos}* %{buildroot}%{_datadir}/osbuild-composer/repositories/ | ||
install -m 0644 -vp vendor/github.com/osbuild/images/data/repositories/centos-%{centos}* %{buildroot}%{_datadir}/osbuild-composer/repositories/ | ||
# centos-stream-* are symlinks | ||
cp -a repositories/centos-stream-%{centos}* %{buildroot}%{_datadir}/osbuild-composer/repositories/ | ||
%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 | ||
install -m 0644 -vp ${REPO_FILE} %{buildroot}%{_datadir}/osbuild-composer/repositories/$(basename ${REPO_FILE}) | ||
done | ||
|
||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Calling |
||
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 commentThe reason will be displayed to describe this comment to others. Learn more. Calling |
||
install -m 0644 -vp ${REPO_FILE} %{buildroot}%{_datadir}/osbuild-composer/repositories/$(basename ${REPO_FILE}) | ||
done | ||
%endif | ||
|
@@ -200,7 +201,7 @@ done | |
|
||
# Fedora can build for all included fedora releases | ||
%if 0%{?fedora} | ||
install -m 0644 -vp repositories/fedora-* %{buildroot}%{_datadir}/osbuild-composer/repositories/ | ||
install -m 0644 -vp vendor/github.com/osbuild/images/data/repositories/fedora-* %{buildroot}%{_datadir}/osbuild-composer/repositories/ | ||
%endif | ||
|
||
install -m 0755 -vd %{buildroot}%{_unitdir} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
All repository data is imported via the "images" library, see | ||
https://github.com/osbuild/images/tree/main/data/repositories | ||
|
||
Most are imported via the "vendor" mechanism, but some special | ||
repositories are kept here, like the `*-no-aux-key.json` that is for | ||
rhel8 only and will only get installed on rhel10 (because the crypto | ||
policy on rhel10 does not allow the sha1 aux-key in the original | ||
rhel8 keys. | ||
|
||
It also contains the centos-* -> centos-stream-* symlinks as | ||
`go:embed` does not support symlinks so we need to keep them | ||
externally. |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
centos-10.json |
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?