Do not create boot subpackage on non-efi arches

This fixes build.
[skip changelog]
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-12-03 09:47:34 +01:00
parent 54a3b6f942
commit 778f8ef8a5
1 changed files with 4 additions and 0 deletions

View File

@ -344,6 +344,7 @@ This package also provides systemd-timesyncd, a network time protocol daemon.
It also contains tools to manage encrypted home areas and secrets bound to the It also contains tools to manage encrypted home areas and secrets bound to the
machine, and to create or grow partitions and make file systems automatically. machine, and to create or grow partitions and make file systems automatically.
%if 0%{?have_gnu_efi}
%package boot-unsigned %package boot-unsigned
Summary: UEFI boot manager (unsigned version) Summary: UEFI boot manager (unsigned version)
@ -359,6 +360,7 @@ line. systemd-boot supports systems with UEFI firmware only.
This package contains the unsigned version. Install systemd-boot instead to get This package contains the unsigned version. Install systemd-boot instead to get
the version that works with Secure Boot. the version that works with Secure Boot.
%endif
%package container %package container
# Name is the same as in Debian # Name is the same as in Debian
@ -1013,7 +1015,9 @@ fi
%files udev -f .file-list-udev %files udev -f .file-list-udev
%if 0%{?have_gnu_efi}
%files boot-unsigned -f .file-list-boot %files boot-unsigned -f .file-list-boot
%endif
%files container -f .file-list-container %files container -f .file-list-container
%ghost %dir %attr(0700,-,-) /var/lib/machines %ghost %dir %attr(0700,-,-) /var/lib/machines