debian-forge/runners
Michael Ho 621fa47563 runners: add fedora-38 specific logic
This fixes an issue where Fedora-38 hosts can not build CentOS-Stream-9
images due to an incompatible gpg key with the new default settings for
rpm.

On Fedora-38, rpm has changed to use a new backend for key verification
and by default does not support SHA1 anymore, although the support for
SHA1 can be re-enabled via a config file. The (current) CentOS-Stream-9
keys however still require SHA1 support in order to be importable. So
they are now unusable on Fedora-38 unless SHA1 support is re-enabled.

In OSBuild, the initial chroot does not contain the config files and so
SHA1 support is disabled when rpmkeys from the host is called. It does
not matter if the crypto-policies on the host machine is configured with
the exception to support SHA1 because the chroot filters that out. This
means it may not be possible to assemble CentOS-Stream-9 based images
without disabling the key check.

This patch adds an explicit conditional case for Fedora-38 to inject the
needed configuration file into /etc/crypto-policies/back-ends to enable
SHA1 support for rpm by default. It does this by copying the default
policies from /usr/share/crypto-policies. The result is OSBuild behaving
similar to the previous behaviour seen on Fedora-37 and earlier.
2023-05-16 13:19:44 +02:00
..
org.osbuild.arch runners: add runner for Arch Linux 2020-02-29 18:34:00 +01:00
org.osbuild.asahi-fedora-remix runners: add Fedora Asahi runner 2022-12-25 11:13:01 +01:00
org.osbuild.AutoSD9 runners: add AutoSD runner 2022-12-15 16:26:02 +01:00
org.osbuild.centos8 runners: add CentOS 8 runner 2020-12-09 11:50:48 +01:00
org.osbuild.centos9 runners: add new centos9 runner 2021-10-30 00:14:16 +01:00
org.osbuild.fedora30 runner: use osbuild.api.exception_handler 2020-10-09 10:47:44 +02:00
org.osbuild.fedora38 runners: add fedora-38 specific logic 2023-05-16 13:19:44 +02:00
org.osbuild.linux osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
org.osbuild.rhel7 modules: explicit encodings for open() 2022-09-09 15:33:29 +02:00
org.osbuild.rhel81 modules: explicit encodings for open() 2022-09-09 15:33:29 +02:00
org.osbuild.rhel82 aarch64: use single qemu-img thread 2021-06-09 11:57:26 +02:00
org.osbuild.ubuntu1804 runner: use osbuild.api.exception_handler 2020-10-09 10:47:44 +02:00