Skip to contentSkip to conversation

systemd: do not enable efi for tpm2

PATCH New Francesco Dolcini 1 participant 1 message Nov 26

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: do not enable efi for tpm2

From: Francesco Dolcini <[email protected]>

Do not implicitly enable systemd EFI support when tpm2 is enabled in DISTRO_FEATURES, as this builds and enables bootctl and systemd-boot-update.service on machines that do not boot through UEFI.

Rely on the existing EFI configuration mechanism in OE-Core which already enable systemd EFI support when efi is present in DISTRO_FEATURES.

Fixes 6eb3098e5788 ("systemd: enable TPM support")

---
We want to enable TPM2 support on systems that do not use UEFI. Currently, enabling tpm2 in DISTRO_FEATURES unnecessarily forces EFI support in systemd.

---
 meta-tpm/recipes-core/systemd/systemd_%.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-tpm/recipes-core/systemd/systemd_%.bbappend +1 -1
index 867c11183ae2..0568ab5b0db2 100644
@@ -2,7 +2,7 @@ PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'tpm2',
 
 # for encrypted filesystems
 PACKAGECONFIG:append = " \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'cryptsetup cryptsetup-plugins efi openssl repart', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'cryptsetup cryptsetup-plugins openssl repart', '', d)} \
 "
 
 # ukify.py and systemd-measure don't work in cross compile environment without
Signature · 1 line
2.47.3