summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-04-06 21:41:14 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-04-07 08:13:42 +0900
commitaf6c5c7025e2b4059ae38026a4bdffca4ff36b79 (patch)
tree898ef3264d4c6dc802d0dcfeeda84777cd05fa9d
parent0864b5eb6ed92d8dc9c7b2e5eab32f79c6ecd24c (diff)
downloadsystemd-af6c5c7025e2b4059ae38026a4bdffca4ff36b79.tar.gz
mkosi: Update to latest
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.
-rw-r--r--.github/workflows/mkosi.yml2
-rw-r--r--mkosi.conf.d/10-systemd.conf4
-rw-r--r--mkosi.conf.d/20-arch.conf (renamed from mkosi.conf.d/arch/10-arch.conf)5
-rw-r--r--mkosi.conf.d/20-centos.conf (renamed from mkosi.conf.d/centos/10-centos.conf)21
-rw-r--r--mkosi.conf.d/20-debian.conf (renamed from mkosi.conf.d/debian/10-debian.conf)5
-rw-r--r--mkosi.conf.d/20-fedora.conf (renamed from mkosi.conf.d/fedora/10-fedora.conf)5
-rw-r--r--mkosi.conf.d/20-opensuse.conf (renamed from mkosi.conf.d/opensuse/10-opensuse.conf)5
-rw-r--r--mkosi.conf.d/20-ubuntu.conf (renamed from mkosi.conf.d/ubuntu/10-ubuntu.conf)5
-rw-r--r--mkosi.conf.d/21-centos-8/mkosi.conf19
-rw-r--r--mkosi.conf.d/21-centos-8/mkosi.reposdir/powertools.repo (renamed from mkosi.conf.d/centos/mkosi.reposdir/powertools.repo)2
-rw-r--r--mkosi.conf.d/21-centos-9.conf18
11 files changed, 53 insertions, 38 deletions
diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml
index cec8a432d2..e5e3646509 100644
--- a/.github/workflows/mkosi.yml
+++ b/.github/workflows/mkosi.yml
@@ -73,7 +73,7 @@ jobs:
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- - uses: systemd/mkosi@af1fe54805c84bb09e80bb585399121946fec701
+ - uses: systemd/mkosi@f219c1125893e8773efed5ec8a1226f3bd8a00cb
- name: Configure
run: |
diff --git a/mkosi.conf.d/10-systemd.conf b/mkosi.conf.d/10-systemd.conf
index bbb3544f1f..2c7eb63e71 100644
--- a/mkosi.conf.d/10-systemd.conf
+++ b/mkosi.conf.d/10-systemd.conf
@@ -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
diff --git a/mkosi.conf.d/arch/10-arch.conf b/mkosi.conf.d/20-arch.conf
index 30333cff3a..c926c88c1a 100644
--- a/mkosi.conf.d/arch/10-arch.conf
+++ b/mkosi.conf.d/20-arch.conf
@@ -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]
diff --git a/mkosi.conf.d/centos/10-centos.conf b/mkosi.conf.d/20-centos.conf
index ff26e3611f..09b7973195 100644
--- a/mkosi.conf.d/centos/10-centos.conf
+++ b/mkosi.conf.d/20-centos.conf
@@ -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)
diff --git a/mkosi.conf.d/debian/10-debian.conf b/mkosi.conf.d/20-debian.conf
index c3e582b8ec..5244194a01 100644
--- a/mkosi.conf.d/debian/10-debian.conf
+++ b/mkosi.conf.d/20-debian.conf
@@ -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]
diff --git a/mkosi.conf.d/fedora/10-fedora.conf b/mkosi.conf.d/20-fedora.conf
index b263cce673..5967c3670f 100644
--- a/mkosi.conf.d/fedora/10-fedora.conf
+++ b/mkosi.conf.d/20-fedora.conf
@@ -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]
diff --git a/mkosi.conf.d/opensuse/10-opensuse.conf b/mkosi.conf.d/20-opensuse.conf
index 1e03c79cff..96093951e1 100644
--- a/mkosi.conf.d/opensuse/10-opensuse.conf
+++ b/mkosi.conf.d/20-opensuse.conf
@@ -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]
diff --git a/mkosi.conf.d/ubuntu/10-ubuntu.conf b/mkosi.conf.d/20-ubuntu.conf
index 51898475b0..97deb70947 100644
--- a/mkosi.conf.d/ubuntu/10-ubuntu.conf
+++ b/mkosi.conf.d/20-ubuntu.conf
@@ -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
index 0000000000..d610212b61
--- /dev/null
+++ b/mkosi.conf.d/21-centos-8/mkosi.conf
@@ -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)
diff --git a/mkosi.conf.d/centos/mkosi.reposdir/powertools.repo b/mkosi.conf.d/21-centos-8/mkosi.reposdir/powertools.repo
index 5c7149a123..1462257c08 100644
--- a/mkosi.conf.d/centos/mkosi.reposdir/powertools.repo
+++ b/mkosi.conf.d/21-centos-8/mkosi.reposdir/powertools.repo
@@ -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
index 0000000000..0febf2c2ee
--- /dev/null
+++ b/mkosi.conf.d/21-centos-9.conf
@@ -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)