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.
This commit is contained in:
Daan De Meyer 2023-04-06 21:41:14 +02:00 committed by Yu Watanabe
parent 0864b5eb6e
commit af6c5c7025
11 changed files with 53 additions and 38 deletions

View file

@ -73,7 +73,7 @@ jobs:
steps: steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- uses: systemd/mkosi@af1fe54805c84bb09e80bb585399121946fec701 - uses: systemd/mkosi@f219c1125893e8773efed5ec8a1226f3bd8a00cb
- name: Configure - name: Configure
run: | run: |

View file

@ -1,7 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1-or-later # 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] [Output]
Bootable=yes Bootable=yes
# Prevent ASAN warnings when building the image and ship the real ASAN options prefixed with MKOSI_. # Prevent ASAN warnings when building the image and ship the real ASAN options prefixed with MKOSI_.
@ -12,7 +10,7 @@ OutputDirectory=mkosi.output
[Content] [Content]
BuildDirectory=mkosi.builddir BuildDirectory=mkosi.builddir
Cache=mkosi.cache CacheDirectory=mkosi.cache
ExtraTrees=src:/root/src ExtraTrees=src:/root/src
Packages= Packages=
acl acl

View file

@ -2,10 +2,7 @@
# #
# Copyright © 2016 Zeal Jagannatha # Copyright © 2016 Zeal Jagannatha
# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi). [Match]
# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image.
[Distribution]
Distribution=arch Distribution=arch
[Content] [Content]

View file

@ -1,16 +1,10 @@
# SPDX-License-Identifier: LGPL-2.1-or-later # SPDX-License-Identifier: LGPL-2.1-or-later
# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi). [Match]
# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image. Distribution=centos
# 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.
[Distribution] [Distribution]
Distribution=centos
Repositories=epel Repositories=epel
RepositoryDirectory=mkosi.conf.d/centos/mkosi.reposdir
[Content] [Content]
Packages= Packages=
@ -45,11 +39,7 @@ Packages=
polkit polkit
popt popt
procps-ng procps-ng
python3[.][9]dist(pefile) python3-docutils
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
quota quota
tpm2-tss tpm2-tss
vim-common vim-common
@ -61,7 +51,6 @@ BuildPackages=
glibc-devel.i686 glibc-devel.i686
glibc-static glibc-static
glibc-static.i686 glibc-static.i686
libgcrypt-devel # CentOS Stream 8 libgcrypt-devel doesn't ship a pkg-config file.
libxslt libxslt
pam-devel pam-devel
perl-interpreter perl-interpreter
@ -102,7 +91,3 @@ BuildPackages=
pkgconfig(tss2-rc) pkgconfig(tss2-rc)
pkgconfig(valgrind) pkgconfig(valgrind)
pkgconfig(xkbcommon) pkgconfig(xkbcommon)
python3-docutils
python3[.][9]dist(jinja2)
python3[.][9]dist(lxml)
python3[.][9]dist(pyelftools)

View file

@ -1,10 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later # SPDX-License-Identifier: LGPL-2.1-or-later
# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi). [Match]
# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image. Distribution=debian
[Distribution] [Distribution]
Distribution=debian
Release=testing Release=testing
[Content] [Content]

View file

@ -1,10 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later # SPDX-License-Identifier: LGPL-2.1-or-later
# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi). [Match]
# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image. Distribution=fedora
[Distribution] [Distribution]
Distribution=fedora
Release=37 Release=37
[Content] [Content]

View file

@ -1,10 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later # SPDX-License-Identifier: LGPL-2.1-or-later
# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi). [Match]
# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image. Distribution=opensuse
[Distribution] [Distribution]
Distribution=opensuse
Release=tumbleweed Release=tumbleweed
[Content] [Content]

View file

@ -1,10 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later # SPDX-License-Identifier: LGPL-2.1-or-later
# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi). [Match]
# Symlink this file to mkosi.conf in the project root directory and invoke "mkosi" to build an OS image. Distribution=ubuntu
[Distribution] [Distribution]
Distribution=ubuntu
Release=jammy Release=jammy
Repositories=main,universe Repositories=main,universe

View file

@ -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)

View file

@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[powertools-hotfixes] [powertools-hotfixes]
name=powertools-hotfixes name=powertools-hotfixes
mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools

View file

@ -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)