[mutter/benzea/ci-add-machine-id] ci: Always generate a machine ID
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/benzea/ci-add-machine-id] ci: Always generate a machine ID
- Date: Wed, 11 Dec 2019 15:17:15 +0000 (UTC)
commit 6d0b3e5fd615816d05d57244d46a6cc6c047d663
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 58b6ad82d..bf13078b7 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -38,3 +38,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]