feat(virtualization): enable TPM2 emulation for Secure Boot VMs

This commit is contained in:
sandwich committed 2026-04-16 15:37:13 +02:00
1 parent 5b66df7e7b
commit 43e6867a8c
3 files changed
+21 -24

No files matched your search

+5 -5
View File
@@ -22,10 +22,10 @@ virtualization_libvirt_ovmf_vars: /usr/share/edk2/x64/OVMF_VARS.4m.fd
virtualization_tpm2_enabled: >-
{{
(system_cfg.luks.enabled | bool)
and (system_cfg.luks.auto | bool)
and (
(system_cfg.luks.method | lower)
== 'tpm2'
(
(system_cfg.luks.enabled | bool)
and (system_cfg.luks.auto | bool)
and (system_cfg.luks.method | lower == 'tpm2')
)
or (system_cfg.features.secure_boot.enabled | default(false) | bool)
}}