ci: Ensure the machine-id is set on the Fedora CI image

Run `systemd-machine-id-setup` when creating the image, so that
`/etc/machine-id` is created with a valid ID. Since systemd isn’t
started when running the CI image with podman/Docker, it’s not created
otherwise. This causes some tests to fail.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-03-01 13:55:03 +00:00
parent da50de9b30
commit ef41cc28b4
2 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,7 @@ cache:
- _ccache/
variables:
FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/glib/fedora:v9"
FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/glib/fedora:v10"
COVERITY_IMAGE: "registry.gitlab.gnome.org/gnome/glib/coverity:v1"
DEBIAN_IMAGE: "registry.gitlab.gnome.org/gnome/glib/debian-stable:v7"
ANDROID_IMAGE: "registry.gitlab.gnome.org/gnome/glib/android-ndk:v3"

View File

@ -1,5 +1,8 @@
FROM fedora:31
# Set /etc/machine-id as its needed for some D-Bus tests
RUN systemd-machine-id-setup
RUN dnf -y update \
&& dnf -y install \
bindfs \