]> git.ipfire.org Git - thirdparty/systemd.git/blame - mkosi.prepare
Merge pull request #26213 from poettering/journal-rework-seqnum
[thirdparty/systemd.git] / mkosi.prepare
CommitLineData
868c318b
DDM
1#!/bin/sh
2# SPDX-License-Identifier: LGPL-2.1-or-later
3set -e
4
5if [ "$(grep '^ID=' /etc/os-release)" = "ID=\"centos\"" ] && [ "$(grep '^VERSION=' /etc/os-release)" = "VERSION=\"8\"" ]; then
868c318b
DDM
6 alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
7 alternatives --set python3 /usr/bin/python3.9
8fi
c9853672
DDM
9
10# Make sure the necessary test users are available in the build image. We do this here because the build
11# script does not run as root.
12if [ "$1" = "build" ]; then
13 for id in 1 2 3; do
14 getent group $id >/dev/null || echo "g testgroup$id $id -" | systemd-sysusers -
15 done
16fi