ci: Always generate a machine ID

At least the F30 base image does not seem to ship with a machine-id.
This causes tests that require DBus to fail as the dbus daemon cannot be
started.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/967
This commit is contained in:
Benjamin Berg 2019-12-11 16:16:36 +01:00
parent 7186d09085
commit 422f6f52b4

View File

@ -27,3 +27,7 @@ RUN dnf -y update && dnf -y upgrade && \
dnf remove -y --noautoremove mutter mutter-devel && \
dnf clean all
# Add a machine-id as specified in the freedesktop spec:
# https://www.freedesktop.org/software/systemd/man/machine-id.html
RUN cat /dev/urandom | tr -dc a-f0-9 | head -c32 > /etc/machine-id && echo "" >> /etc/machine-id