Skip to content

Commit

Permalink
playbooks: Fix CI for containers#897
Browse files Browse the repository at this point in the history
PR containers#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.
  • Loading branch information
HarryMichal committed Oct 22, 2021
1 parent 8eccc99 commit 4476c72
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions playbooks/setup-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 4476c72

Please sign in to comment.