diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-01-29 15:17:06 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-01-29 17:05:23 +0100 |
commit | 868c318ba3657b4d77ce08241f568694288b6f99 (patch) | |
tree | efe6db8c00638847511dca311b8d74a7cf080cdc /mkosi.prepare | |
parent | mkosi: Drop focal workaround in build script (diff) | |
download | systemd-868c318ba3657b4d77ce08241f568694288b6f99.tar.xz systemd-868c318ba3657b4d77ce08241f568694288b6f99.zip |
mkosi: Add back CentOS Stream 8 to CI
It's still useful to test the EFI handover logic in systemd-boot.
We use a mkosi.prepare script to install a newer python and update
the system to use it.
Diffstat (limited to 'mkosi.prepare')
-rwxr-xr-x | mkosi.prepare | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mkosi.prepare b/mkosi.prepare new file mode 100755 index 0000000000..9d377cf716 --- /dev/null +++ b/mkosi.prepare @@ -0,0 +1,19 @@ +#!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later +set -e + +if [ "$(grep '^ID=' /etc/os-release)" = "ID=\"centos\"" ] && [ "$(grep '^VERSION=' /etc/os-release)" = "VERSION=\"8\"" ]; then + # python39-pluggy is a pytest dependency that's not installed for some reason. + dnf \ + -y \ + --enablerepo=powertools \ + --setopt=powertools.module_hotfixes=true \ + install \ + python39 \ + python39-pefile \ + python39-jinja2 \ + python39-pytest \ + python39-pluggy + alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 + alternatives --set python3 /usr/bin/python3.9 +fi |