--- /dev/null
+#!/bin/bash
+# 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"
# SPDX-License-Identifier: LGPL-2.1-or-later
+[Config]
+InitrdInclude=initrd/
+
[Output]
@Format=directory
+++ /dev/null
-#!/bin/bash
-# SPDX-License-Identifier: LGPL-2.1-or-later
-set -e
-
-mkosi-install systemd systemd-sysvcompat
[Match]
Distribution=arch
-[Config]
-InitrdInclude=initrd/
-
# TODO: Switch to https://gitlab.archlinux.org/archlinux/packaging/packages/systemd once
# https://gitlab.archlinux.org/archlinux/packaging/packages/systemd/-/merge_requests/8 is merged.
[Content]
Environment=
SYSTEMD_PACKAGES="systemd systemd-ukify systemd-sysvcompat systemd-resolvconf systemd-tests"
+ INITRD_PACKAGES="systemd systemd-sysvcompat"
Packages=
bpf
+++ /dev/null
-#!/bin/bash
-# SPDX-License-Identifier: LGPL-2.1-or-later
-set -e
-
-mkosi-install systemd systemd-udev
Distribution=|centos
Distribution=|fedora
-[Config]
-InitrdInclude=initrd/
-
[Content]
Environment=
SYSTEMD_PACKAGES="systemd
systemd-oomd-defaults
systemd-journal-remote
systemd-networkd-defaults"
+ INITRD_PACKAGES="systemd systemd-udev"
+
Packages=
bpftool
cryptsetup
+++ /dev/null
-#!/bin/bash
-# SPDX-License-Identifier: LGPL-2.1-or-later
-set -e
-
-mkosi-install systemd udev
Distribution=|debian
Distribution=|ubuntu
-[Config]
-InitrdInclude=initrd/
-
[Content]
Environment=
SYSTEMD_PACKAGES="systemd
systemd-boot
systemd-ukify
udev"
+ INITRD_PACKAGES="systemd udev"
Packages=
^libasan[0-9]+$
+++ /dev/null
-#!/bin/sh
-# SPDX-License-Identifier: LGPL-2.1-or-later
-set -e
-
-# 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"
-
-mkosi-install systemd udev systemd-experimental
[Match]
Distribution=opensuse
-[Config]
-InitrdInclude=initrd/
-
[Content]
Environment=
SYSTEMD_PACKAGES="systemd
systemd-portable
systemd-sysvcompat
systemd-testsuite"
+ INITRD_PACKAGES="systemd udev systemd-experimental"
# We install gawk, gzip, grep, xz, sed, rsync and docbook-xsl-stylesheets here explicitly so that the busybox
# versions don't get installed instead.