Skip to content

Commit

Permalink
grub-efi: move efi packages to run dependencies of grub-efi
Browse files Browse the repository at this point in the history
Packages like shim, seloader etc. are currently being installed always,
as packages listed in `packagegroup-efi-secure-boot.bb`.

Instead of installing them for each scheme, they should be installed
conditionally, as run dependencies of grub-efi package.

Signed-off-by: Piotr Łobacz <p.lobacz@welotec.com>
  • Loading branch information
Dvergatal committed Jan 26, 2025
1 parent 2bc9275 commit 33938af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ LIC_FILES_CHKSUM = "\

S = "${WORKDIR}"

SELOADER_PKG = "${@'seloader' if d.getVar('UEFI_SELOADER') == '1' else ''}"
ALLOW_EMPTY:${PN} = "1"

pkgs = "\
grub-efi \
efitools \
efibootmgr \
mokutil \
${SELOADER_PKG} \
shim \
"

RDEPENDS:${PN}:x86 = "${pkgs}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
RDEPENDS:${PN} += "efitools \
${@'seloader' if d.getVar('UEFI_SELOADER') == '1' else ''} \
${@'mokutil shim' if d.getVar('MOK_SB') == '1' else ''} \
"
DEPENDS += "openssl-native"
FILESEXTRAPATHS:prepend := "${THISDIR}/grub-efi:"

Expand Down

0 comments on commit 33938af

Please sign in to comment.