mkosi: Use new volatile package settings

mkosi just learned to do natively what we currently do with environment
variables and a postinst script, so let's update to the latest version
and start using the new settings instead.
This commit is contained in:
Daan De Meyer
2024-04-14 19:53:43 +02:00
parent 962f9d6fb4
commit 9c5216bb9d
7 changed files with 66 additions and 58 deletions
-3
View File
@@ -1,8 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Config]
InitrdInclude=initrd/
[Output]
@Format=directory
@@ -4,9 +4,12 @@
Distribution=arch
[Content]
Environment=
SYSTEMD_PACKAGES="systemd systemd-ukify systemd-sysvcompat systemd-resolvconf systemd-tests"
INITRD_PACKAGES="systemd systemd-sysvcompat"
VolatilePackages=
systemd
systemd-ukify
systemd-sysvcompat
systemd-resolvconf
systemd-tests
Packages=
bpf
@@ -39,3 +42,7 @@ Packages=
InitrdPackages=
btrfs-progs
tpm2-tools
InitrdVolatilePackages=
systemd
systemd-sysvcompat
@@ -5,21 +5,20 @@ Distribution=|centos
Distribution=|fedora
[Content]
Environment=
SYSTEMD_PACKAGES="systemd
systemd-udev
systemd-container
systemd-repart
systemd-resolved
systemd-networkd
systemd-boot
systemd-tests
systemd-ukify
systemd-pam
systemd-oomd-defaults
systemd-journal-remote
systemd-networkd-defaults"
INITRD_PACKAGES="systemd systemd-udev"
VolatilePackages=
systemd
systemd-udev
systemd-container
systemd-repart
systemd-resolved
systemd-networkd
systemd-boot
systemd-tests
systemd-ukify
systemd-pam
systemd-oomd-defaults
systemd-journal-remote
systemd-networkd-defaults
Packages=
bpftool
@@ -57,3 +56,7 @@ Packages=
InitrdPackages=
tpm2-tools
InitrdVolatilePackages=
systemd
systemd-udev
@@ -5,22 +5,21 @@ Distribution=|debian
Distribution=|ubuntu
[Content]
Environment=
SYSTEMD_PACKAGES="systemd
systemd-userdbd
systemd-oomd
systemd-sysv
systemd-tests
systemd-timesyncd
systemd-resolved
systemd-homed
systemd-coredump
systemd-journal-remote
systemd-container
systemd-boot
systemd-ukify
udev"
INITRD_PACKAGES="systemd udev"
VolatilePackages=
systemd
systemd-userdbd
systemd-oomd
systemd-sysv
systemd-tests
systemd-timesyncd
systemd-resolved
systemd-homed
systemd-coredump
systemd-journal-remote
systemd-container
systemd-boot
systemd-ukify
udev
Packages=
^libasan[0-9]+$
@@ -57,3 +56,7 @@ Packages=
InitrdPackages=
btrfs-progs
tpm2-tools
InitrdVolatilePackages=
systemd
udev
@@ -2,9 +2,6 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
# shellcheck disable=SC2086
mkosi-install $INITRD_PACKAGES
# OpenSUSE insists on blacklisting erofs by default because its supposedly a legacy filesystem.
# See https://github.com/openSUSE/suse-module-tools/pull/71
rm -f "$BUILDROOT/usr/lib/modprobe.d/60-blacklist_fs-erofs.conf"
@@ -3,19 +3,21 @@
[Match]
Distribution=opensuse
[Config]
InitrdInclude=initrd/
[Content]
Environment=
SYSTEMD_PACKAGES="systemd
udev
systemd-experimental
systemd-boot
systemd-container
systemd-homed
systemd-network
systemd-portable
systemd-sysvcompat
systemd-testsuite"
INITRD_PACKAGES="systemd udev systemd-experimental"
VolatilePackages=
systemd
udev
systemd-experimental
systemd-boot
systemd-container
systemd-homed
systemd-network
systemd-portable
systemd-sysvcompat
systemd-testsuite
# We install gawk, gzip, grep, xz, sed, rsync and docbook-xsl-stylesheets here explicitly so that the busybox
# versions don't get installed instead.
@@ -57,3 +59,8 @@ InitrdPackages=
kmod
libkmod2
tpm2.0-tools
InitrdVolatilePackages=
systemd
udev
systemd-experimental
-6
View File
@@ -1,6 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
# shellcheck disable=SC2086
mkosi-install $SYSTEMD_PACKAGES