1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00
systemd/mkosi.prepare
Daan De Meyer 39a6a5169b mkosi: Use globs instead of prepare script to install extra packages
This allows us to install everything in the same dnf command instead
of having to use a prepare script to run dnf from within the image.

This is a hack until mkosi supports release specific dropin files.
2023-02-10 16:05:32 +01:00

17 lines
605 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
alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
alternatives --set python3 /usr/bin/python3.9
fi
# Make sure the necessary test users are available in the build image. We do this here because the build
# script does not run as root.
if [ "$1" = "build" ]; then
for id in 1 2 3; do
getent group $id >/dev/null || echo "g testgroup$id $id -" | systemd-sysusers -
done
fi