diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 4b77be24b4..b97ce6eee5 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -74,10 +74,12 @@ jobs: release: tumbleweed - distro: centos release: "9" + - distro: centos + release: "8" steps: - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b - - uses: systemd/mkosi@37c0524360ee460174f83081fa14e0dc9bc6ee0d + - uses: systemd/mkosi@f36983f552a197faf9e36361cc68a297e68bee73 - name: Configure run: | @@ -100,7 +102,7 @@ jobs: run: sudo mkosi summary - name: Boot ${{ matrix.distro }} systemd-nspawn - run: sudo mkosi boot ${{ env.KERNEL_CMDLINE }} + run: sudo mkosi boot ${{ env.KERNEL_CMDLINE }} audit=0 - name: Check ${{ matrix.distro }} systemd-nspawn run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }" diff --git a/mkosi.build b/mkosi.build index d2b9ea957e..b058b0352f 100755 --- a/mkosi.build +++ b/mkosi.build @@ -22,7 +22,11 @@ fi # If mkosi.builddir/ exists mkosi will set $BUILDDIR to it, let's then use it # as out-of-tree build dir. Otherwise, let's make up our own builddir. -[ -z "$BUILDDIR" ] && BUILDDIR=build +[ -z "$BUILDDIR" ] && BUILDDIR="$PWD"/build + +# Let's make sure we're using stuff from the build directory first if available there. +PATH="$BUILDDIR:$PATH" +export PATH # Meson uses Python 3 and requires a locale with an UTF-8 character map. # Not running under UTF-8 makes the `ninja test` step break with a CodecError. @@ -52,7 +56,7 @@ fi # the ubuntu script with a symlink to the first bpftool program we can find. for bpftool in /usr/lib/linux-tools/*/bpftool; do [ -x "$bpftool" ] || continue - ln -sf "$bpftool" /usr/sbin/bpftool + ln -sf "$bpftool" "$BUILDDIR"/bpftool break done @@ -60,16 +64,15 @@ done # specific feature we need ("gen skeleton") to this version, so we replace bpftool with a script that reports # version 5.6.0 to satisfy meson which makes bpf work on CentOS Stream 8 as well. if [ "$(grep '^ID=' /etc/os-release)" = "ID=\"centos\"" ] && [ "$(grep '^VERSION=' /etc/os-release)" = "VERSION=\"8\"" ]; then - cp /usr/sbin/bpftool /usr/sbin/bpftool.real - cat >/usr/sbin/bpftool <"$BUILDDIR"/bpftool <