From: Daan De Meyer Date: Wed, 18 May 2022 10:09:11 +0000 (+0200) Subject: action: Compile systemd-nspawn v251 from source X-Git-Tag: v13~11^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9306d9c7f180b45a0b114ef0ea30ea15d9f1556;p=thirdparty%2Fmkosi.git action: Compile systemd-nspawn v251 from source --- diff --git a/action.yaml b/action.yaml index 6974b485c..f5a1075e1 100644 --- a/action.yaml +++ b/action.yaml @@ -56,6 +56,20 @@ runs: env: BUILDDIR: build + # Try to eliminate "Failed to dissect image: Connection timed out" errors from nspawn by compiling + # systemd-nspawn from v251 from source. + - name: Update systemd-nspawn + shell: bash + 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-get update + sudo apt-get build-dep systemd + git clone https://github.com/systemd/systemd-stable --branch v251.2 --depth=1 + meson systemd-stable/build systemd-stable + ninja -C systemd-stable/build + sudo ln -svf $PWD/systemd-stable/build/systemd-nspawn $(which systemd-nspawn) + systemd-nspawn --version + - name: Install shell: bash run: sudo python3 -m pip install ${{ github.action_path }}