Do not create boot subpackage on non-efi arches

This fixes build.
[skip changelog]

(cherry picked from commit 778f8ef8a5)

Related: #2157663
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-12-03 09:47:34 +01:00 committed by Jan Macku
parent 133bef1c24
commit 6d0071c1b2

View File

@ -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