mirror of
https://github.com/systemd/systemd.git
synced 2025-02-22 09:57:34 +03:00
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:
parent
0864b5eb6e
commit
af6c5c7025
2
.github/workflows/mkosi.yml
vendored
2
.github/workflows/mkosi.yml
vendored
@ -73,7 +73,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
||||
- uses: systemd/mkosi@af1fe54805c84bb09e80bb585399121946fec701
|
||||
- uses: systemd/mkosi@f219c1125893e8773efed5ec8a1226f3bd8a00cb
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
|
@ -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
|
||||
|
@ -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]
|
@ -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)
|
@ -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]
|
@ -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]
|
@ -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]
|
@ -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
|
||||
|
19
mkosi.conf.d/21-centos-8/mkosi.conf
Normal file
19
mkosi.conf.d/21-centos-8/mkosi.conf
Normal 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)
|
@ -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
|
18
mkosi.conf.d/21-centos-9.conf
Normal file
18
mkosi.conf.d/21-centos-9.conf
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user