]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
action: Build newer xfsprogs
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 18 Oct 2023 13:17:56 +0000 (15:17 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 18 Oct 2023 19:43:18 +0000 (21:43 +0200)
Support for handling filenames with spaces in mkfs.xfs was only
added in a recent version of xfsprogs so build it from source for
now.

action.yaml

index a207b343c87e0d9093cfc87993aa6e1841e4f760..e4e2ebe3489494a0fe69f1dc8d81aa523be43cda 100644 (file)
@@ -87,6 +87,31 @@ runs:
         $BINARY --version
       done
 
+  # Make sure we have mkfs.xfs that can handle spaces in protofiles.
+  # TODO: Drop when we move to the next Ubuntu LTS.
+  - name: Update xfsprogs
+    shell: bash
+    working-directory: ${{ github.action_path }}
+    run: |
+      sudo apt-get install --assume-yes --no-install-recommends \
+        make \
+        gcc \
+        autoconf \
+        automake \
+        libtool \
+        libdevmapper-dev \
+        libblkid-dev \
+        libicu-dev \
+        libedit-dev \
+        libinih-dev \
+        liburcu-dev \
+        uuid-dev
+
+      git clone --single-branch --branch v6.4.0 https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git
+      cd xfsprogs-dev
+      make
+      sudo make install
+
   - name: Install
     shell: bash
     run: sudo ln -svf ${{ github.action_path }}/bin/mkosi /usr/bin/mkosi