[mutter/benzea/ci-add-machine-id: 321/321] ci: Always generate a machine ID



commit cdf0c00c3c08ac239b8ae61d2676eb2728f1f894
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Dec 11 16:16:36 2019 +0100

    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.

 .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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]