69ffc888ca
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
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Install requirements
|
|
become: yes
|
|
package:
|
|
use: dnf
|
|
name:
|
|
- bash-completion
|
|
- bats
|
|
- flatpak-session-helper
|
|
- golang
|
|
- golang-github-cpuguy83-md2man
|
|
- meson
|
|
- ninja-build
|
|
- patchelf
|
|
- podman
|
|
- skopeo
|
|
- systemd
|
|
- udisks2
|
|
|
|
- name: Setup submodules
|
|
shell: |
|
|
git submodule init
|
|
git submodule update
|
|
args:
|
|
chdir: '{{ zuul.project.src_dir }}'
|
|
|
|
- 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 patchelf
|
|
|
|
- name: Show podman versions
|
|
command: podman version
|
|
|
|
- name: Show podman debug information
|
|
command: podman info --debug
|
|
|
|
- name: Set up build directory
|
|
command: meson builddir
|
|
args:
|
|
chdir: '{{ zuul.project.src_dir }}'
|
|
|
|
- name: Build Toolbox
|
|
command: ninja -C builddir
|
|
args:
|
|
chdir: '{{ zuul.project.src_dir }}'
|
|
creates: builddir/src/toolbox
|
|
|
|
- name: Install Toolbox
|
|
become: yes
|
|
command: ninja -C builddir install
|
|
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
|