From 5cd3462014a1383514142b7d0863642148d878ec Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 8 Mar 2026 20:51:38 +0100 Subject: [PATCH] vmspawn: make efi variable nvram dependent on whether the EFI profile knows the concept, not on secureboot --- src/vmspawn/vmspawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index c114693d91..8f08fdb81c 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -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;