summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-02-26 17:06:25 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2021-02-26 17:06:25 +0100
commitd227b6a7c0090a358f8595e09f71ee6b6e231806 (patch)
tree1daeebbc0c156450272272750d57486e9379ed1d /.github
parentb12dba35d11c370d2215e260dacf1177971cdb28 (diff)
downloadsystemd-d227b6a7c0090a358f8595e09f71ee6b6e231806.tar.gz
ci: build an upstream version of systemd-nspawn
Ubuntu's systemd-nspawn doesn't support faccessat2() syscall, which is required, since current Arch's glibc implements faccessat() via faccessat2().
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/mkosi.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml
index c0dd8c6e55..2c9630dec8 100644
--- a/.github/workflows/mkosi.yml
+++ b/.github/workflows/mkosi.yml
@@ -32,6 +32,19 @@ jobs:
- name: Symlink
run: ln -s .mkosi/mkosi.${{ matrix.distro }} mkosi.default
+ # Ubuntu's systemd-nspawn doesn't support faccessat2() syscall, which is
+ # required, since current Arch's glibc implements faccessat() via faccessat2().
+ - name: Update systemd-nspawn
+ if: ${{ matrix.distro == 'arch' }}
+ run: |
+ echo "deb-src http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
+ sudo apt update
+ sudo apt build-dep systemd
+ meson build
+ ninja -C build
+ sudo ln -svf $PWD/build/systemd-nspawn `which systemd-nspawn`
+ systemd-nspawn --version
+
- name: Build ${{ matrix.distro }}
run: sudo python3 -m mkosi --password= --qemu-headless build