From 422f6f52b40a089aa5d9dcf949163f02628ccab3 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 11 Dec 2019 16:16:36 +0100 Subject: [PATCH] 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 --- .gitlab-ci/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci/Dockerfile b/.gitlab-ci/Dockerfile index 6d2548c18..6465ed0a3 100644 --- a/.gitlab-ci/Dockerfile +++ b/.gitlab-ci/Dockerfile @@ -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