From 6d0071c1b22d8dd7ca7d24a568b0fa2306a4d2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 3 Dec 2022 09:47:34 +0100 Subject: [PATCH] Do not create boot subpackage on non-efi arches This fixes build. [skip changelog] (cherry picked from commit 778f8ef8a5a9665fe53e1d715ae1c076897c3458) Related: #2157663 --- systemd.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/systemd.spec b/systemd.spec index 87ab1a4..6ec8d98 100644 --- a/systemd.spec +++ b/systemd.spec @@ -515,6 +515,7 @@ This package contains systemd-udev and the rules and hardware database needed to manage device nodes. This package is necessary on physical machines and in virtual machines, but not in containers. +%if 0%{?have_gnu_efi} %package boot-unsigned Summary: UEFI boot manager (unsigned version) @@ -535,6 +536,7 @@ line. systemd-boot supports systems with UEFI firmware only. This package contains the unsigned version. Install systemd-boot instead to get the version that works with Secure Boot. +%endif %package container # Name is the same as in Debian @@ -1105,7 +1107,9 @@ getent passwd systemd-oom &>/dev/null || useradd -r -l -g systemd-oom -d / -s /s %files udev -f .file-list-udev +%if 0%{?have_gnu_efi} %files boot-unsigned -f .file-list-boot +%endif %files container -f .file-list-container