vmspawn: make efi variable nvram dependent on whether the EFI profile knows the concept, not on secureboot

This commit is contained in:
Lennart Poettering
2026-03-08 20:51:38 +01:00
parent 516a7b2baa
commit 5cd3462014

View File

@@ -2367,7 +2367,7 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) {
return log_oom();
_cleanup_(unlink_and_freep) char *ovmf_vars_to = NULL;
if (ovmf_config->supports_sb) {
if (ovmf_config->vars) {
const char *ovmf_vars_from = ovmf_config->vars;
_cleanup_free_ char *escaped_ovmf_vars_to = NULL;
_cleanup_close_ int source_fd = -EBADF, target_fd = -EBADF;