]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Update to latest
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 6 Apr 2023 19:41:14 +0000 (21:41 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Apr 2023 23:13:42 +0000 (08:13 +0900)
This also migrates the configuration to the new format that was
just merged in mkosi. Specifically, we make use of the new [Match]
sections to only include specific config snippets per distro.

.github/workflows/mkosi.yml
mkosi.conf.d/10-systemd.conf
mkosi.conf.d/20-arch.conf [moved from mkosi.conf.d/arch/10-arch.conf with 78% similarity]
mkosi.conf.d/20-centos.conf [moved from mkosi.conf.d/centos/10-centos.conf with 66% similarity]
mkosi.conf.d/20-debian.conf [moved from mkosi.conf.d/debian/10-debian.conf with 90% similarity]
mkosi.conf.d/20-fedora.conf [moved from mkosi.conf.d/fedora/10-fedora.conf with 91% similarity]
mkosi.conf.d/20-opensuse.conf [moved from mkosi.conf.d/opensuse/10-opensuse.conf with 91% similarity]
mkosi.conf.d/20-ubuntu.conf [moved from mkosi.conf.d/ubuntu/10-ubuntu.conf with 90% similarity]
mkosi.conf.d/21-centos-8/mkosi.conf [new file with mode: 0644]
mkosi.conf.d/21-centos-8/mkosi.reposdir/powertools.repo [moved from mkosi.conf.d/centos/mkosi.reposdir/powertools.repo with 84% similarity]
mkosi.conf.d/21-centos-9.conf [new file with mode: 0644]

index cec8a432d28d4e2a0e4777faed8ca3744e10e490..e5e3646509b53b76b0c2609ac2768662caa575c2 100644 (file)
@@ -73,7 +73,7 @@ jobs:
 
     steps:
     - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
-    - uses: systemd/mkosi@af1fe54805c84bb09e80bb585399121946fec701
+    - uses: systemd/mkosi@f219c1125893e8773efed5ec8a1226f3bd8a00cb
 
     - name: Configure
       run: |
index bbb3544f1f37d646e590b355de66e6ba0d944e3d..2c7eb63e71c0c09e0c6684dfe53954d47955c790 100644 (file)
@@ -1,7 +1,5 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi).
-
 [Output]
 Bootable=yes
 # Prevent ASAN warnings when building the image and ship the real ASAN options prefixed with MKOSI_.
@@ -12,7 +10,7 @@ OutputDirectory=mkosi.output
 
 [Content]
 BuildDirectory=mkosi.builddir
-Cache=mkosi.cache
+CacheDirectory=mkosi.cache
 ExtraTrees=src:/root/src
 Packages=
         acl
similarity index 78%
rename from mkosi.conf.d/arch/10-arch.conf
rename to mkosi.conf.d/20-arch.conf
index 30333cff3a967853c7ef89adbe970219906bf593..c926c88c1a014f05a40a9a42f50f75bdb2114cc6 100644 (file)
@@ -2,10 +2,7 @@
 #
 # Copyright © 2016 Zeal Jagannatha
 
-# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi).
-# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image.
-
-[Distribution]
+[Match]
 Distribution=arch
 
 [Content]
similarity index 66%
rename from mkosi.conf.d/centos/10-centos.conf
rename to mkosi.conf.d/20-centos.conf
index ff26e3611fdedb86c2b418f4992e0206ce305bc6..09b7973195252fad3bae23404d4d7256d106ccc9 100644 (file)
@@ -1,16 +1,10 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi).
-# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image.
-
-# We use python3[.][9]dist() throughout this file because we need to make sure the python3.9dis() packages
-# are installed on CentOS Stream 8. mkosi doesn't support release specific configuration yet so we use the
-# globs to get the necessary packages on both CentOS Stream 8 and CentOS Stream 9.
+[Match]
+Distribution=centos
 
 [Distribution]
-Distribution=centos
 Repositories=epel
-RepositoryDirectory=mkosi.conf.d/centos/mkosi.reposdir
 
 [Content]
 Packages=
@@ -45,11 +39,7 @@ Packages=
         polkit
         popt
         procps-ng
-        python3[.][9]dist(pefile)
-        python3[.][9]dist(pluggy) # python39-pluggy is a pytest dependency that's not installed for some reason.
-        python3[.][9]dist(psutil)
-        python3[.][9]dist(pytest)
-        python39
+        python3-docutils
         quota
         tpm2-tss
         vim-common
@@ -61,7 +51,6 @@ BuildPackages=
         glibc-devel.i686
         glibc-static
         glibc-static.i686
-        libgcrypt-devel # CentOS Stream 8 libgcrypt-devel doesn't ship a pkg-config file.
         libxslt
         pam-devel
         perl-interpreter
@@ -102,7 +91,3 @@ BuildPackages=
         pkgconfig(tss2-rc)
         pkgconfig(valgrind)
         pkgconfig(xkbcommon)
-        python3-docutils
-        python3[.][9]dist(jinja2)
-        python3[.][9]dist(lxml)
-        python3[.][9]dist(pyelftools)
similarity index 90%
rename from mkosi.conf.d/debian/10-debian.conf
rename to mkosi.conf.d/20-debian.conf
index c3e582b8ecf93299e3c04d6e971e68d4c2fb7216..5244194a01d1b032ba02f4de55e7b2a448eaa895 100644 (file)
@@ -1,10 +1,9 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi).
-# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image.
+[Match]
+Distribution=debian
 
 [Distribution]
-Distribution=debian
 Release=testing
 
 [Content]
similarity index 91%
rename from mkosi.conf.d/fedora/10-fedora.conf
rename to mkosi.conf.d/20-fedora.conf
index b263cce673834887a7ad7ca358896888bc36227f..5967c3670f3a383f86e14e87e6d64c2be0c0c3a2 100644 (file)
@@ -1,10 +1,9 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi).
-# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image.
+[Match]
+Distribution=fedora
 
 [Distribution]
-Distribution=fedora
 Release=37
 
 [Content]
similarity index 91%
rename from mkosi.conf.d/opensuse/10-opensuse.conf
rename to mkosi.conf.d/20-opensuse.conf
index 1e03c79cff238f728df5f21320e9463c6598352a..96093951e1d419719461751d85da9abc1702dd17 100644 (file)
@@ -1,10 +1,9 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi).
-# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image.
+[Match]
+Distribution=opensuse
 
 [Distribution]
-Distribution=opensuse
 Release=tumbleweed
 
 [Content]
similarity index 90%
rename from mkosi.conf.d/ubuntu/10-ubuntu.conf
rename to mkosi.conf.d/20-ubuntu.conf
index 51898475b0b56f5b9a45bd59d3a5bd3d17f64f1a..97deb7094735749c887ba4b5e02b4a911e9479c6 100644 (file)
@@ -1,10 +1,9 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi).
-# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image.
+[Match]
+Distribution=ubuntu
 
 [Distribution]
-Distribution=ubuntu
 Release=jammy
 Repositories=main,universe
 
diff --git a/mkosi.conf.d/21-centos-8/mkosi.conf b/mkosi.conf.d/21-centos-8/mkosi.conf
new file mode 100644 (file)
index 0000000..d610212
--- /dev/null
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=centos
+Release=8
+
+[Content]
+Packages=
+        python39
+        python3.9dist(pefile)
+        python3.9dist(pluggy) # python39-pluggy is a pytest dependency that's not installed for some reason.
+        python3.9dist(psutil)
+        python3.9dist(pytest)
+
+BuildPackages=
+        libgcrypt-devel # CentOS Stream 8 libgcrypt-devel doesn't ship a pkg-config file.
+        python3.9dist(jinja2)
+        python3.9dist(lxml)
+        python3.9dist(pyelftools)
similarity index 84%
rename from mkosi.conf.d/centos/mkosi.reposdir/powertools.repo
rename to mkosi.conf.d/21-centos-8/mkosi.reposdir/powertools.repo
index 5c7149a123378c96b2dd1d44ca712009657e9b2e..1462257c087e9e3e5759a27bf44f11ddf4113e17 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
 [powertools-hotfixes]
 name=powertools-hotfixes
 mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools
diff --git a/mkosi.conf.d/21-centos-9.conf b/mkosi.conf.d/21-centos-9.conf
new file mode 100644 (file)
index 0000000..0febf2c
--- /dev/null
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=centos
+Release=9
+
+[Content]
+Packages=
+        python3dist(pefile)
+        python3dist(pluggy) # python39-pluggy is a pytest dependency that's not installed for some reason.
+        python3dist(psutil)
+        python3dist(pytest)
+
+BuildPackages=
+        pkgconfig(libgcrypt)
+        python3dist(jinja2)
+        python3dist(lxml)
+        python3dist(pyelftools)