]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: make efi variable nvram dependent on whether the EFI profile knows the conce...
authorLennart Poettering <lennart@amutable.com>
Sun, 8 Mar 2026 19:51:38 +0000 (20:51 +0100)
committerLennart Poettering <lennart@amutable.com>
Tue, 24 Mar 2026 13:40:08 +0000 (14:40 +0100)
src/vmspawn/vmspawn.c

index c114693d91129ac2b81e5c7e68c2efd5f4a08aab..8f08fdb81ca6e438605ee1675a2bae154f7c1d18 100644 (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;