]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
action: Compile systemd-nspawn v251 from source
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 18 May 2022 10:09:11 +0000 (12:09 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 20 Jun 2022 11:24:59 +0000 (13:24 +0200)
action.yaml

index 6974b485c7b83cca0a28a413ed26c4255f9552cc..f5a1075e1f3afcb46010f0d195bc6446c2beadca 100644 (file)
@@ -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 }}