From 83938f1df38c3796ec2a242ddf9830691187054c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20M=C3=ADchal?= Date: Fri, 22 Oct 2021 15:25:20 +0300 Subject: [PATCH] playbooks: Fix CI for #897 PR #897 made adjustmnets to the Toolbx binary that it requires presence of /run/host in both the host filesystem and the filesystem in a container. The presence of the directory is assured by systemd-tmpfiles by running it before the binary is started for the first time. For the run to be effective 'data/tmpfiles.d/toolbox.conf' has to be installed in a location visible to systemd-tmpfiles. Therefore, the call to 'systemd-tmpfiles --create' had to be placed after the install step. https://github.com/containers/toolbox/pull/898 --- playbooks/setup-env.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/playbooks/setup-env.yaml b/playbooks/setup-env.yaml index 460ca9977..2f858bcf7 100644 --- a/playbooks/setup-env.yaml +++ b/playbooks/setup-env.yaml @@ -26,14 +26,8 @@ args: chdir: '{{ zuul.project.src_dir }}' - - name: Setup environment - become: yes - command: - cmd: systemd-tmpfiles --create - creates: /run/media - - name: Check versions of crucial packages - command: rpm -qa *kernel* *glibc* golang podman conmon containernetworking-plugins containers-common container-selinux crun runc fuse-overlayfs flatpak-session-helper + command: rpm -qa *kernel* *glibc* golang podman conmon containernetworking-plugins containers-common container-selinux crun runc fuse-overlayfs flatpak-session-helper patchelf - name: Show podman versions command: podman version @@ -58,3 +52,10 @@ args: chdir: '{{ zuul.project.src_dir }}' creates: /usr/local/bin/toolbox + + - name: Setup environment + become: yes + command: + cmd: systemd-tmpfiles --create + creates: /run/media + creates: /run/host