]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: install EFI packages only on EFI architectures
authorLuca Boccassi <bluca@debian.org>
Sun, 16 Jun 2024 19:42:12 +0000 (20:42 +0100)
committerLuca Boccassi <bluca@debian.org>
Mon, 17 Jun 2024 10:34:52 +0000 (11:34 +0100)
sbsigntool, systemd-boot and systemd-boot-efi do not  exist on other
architectures

mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.conf
mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.conf.d/efi.conf [new file with mode: 0644]

index ae014fa9664265d9ee1d55f0402a8a6ead85deda..ecac78049d42046101217010ebecd57f5cfcd9fb 100644 (file)
@@ -20,8 +20,6 @@ VolatilePackages=
         libsystemd-dev
         libudev-dev
         systemd
-        systemd-boot
-        systemd-boot-efi
         systemd-container
         systemd-coredump
         systemd-dev
@@ -74,7 +72,6 @@ Packages=
         python3-pexpect
         python3-psutil
         quota
-        sbsigntool
         softhsm2
         squashfs-tools
         stress
diff --git a/mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.conf.d/efi.conf b/mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.conf.d/efi.conf
new file mode 100644 (file)
index 0000000..781670a
--- /dev/null
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+# sbsigntool exists only on UEFI architectures
+
+[Match]
+Architecture=|x86
+Architecture=|x86-64
+Architecture=|arm
+Architecture=|arm64
+Architecture=|riscv32
+Architecture=|riscv64
+
+[Content]
+Packages=
+        sbsigntool
+        systemd-boot
+        systemd-boot-efi