mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
868c318ba3
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.
20 lines
653 B
Bash
Executable File
20 lines
653 B
Bash
Executable File
#!/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
|