]> git.ipfire.org Git - thirdparty/systemd.git/blob - mkosi.prepare
tree-wide: port more code over to CMSG_TYPED_DATA()
[thirdparty/systemd.git] / mkosi.prepare
1 #!/bin/sh
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 set -e
4
5 if [ "$(grep '^ID=' /etc/os-release)" = "ID=\"centos\"" ] && [ "$(grep '^VERSION=' /etc/os-release)" = "VERSION=\"8\"" ]; then
6 alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
7 alternatives --set python3 /usr/bin/python3.9
8 fi
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.
12 if [ "$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
16 fi