]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: prefix extra kernel-cmdline-extra with -smbios
authorSam Leonard <sam.leonard@codethink.co.uk>
Wed, 13 Mar 2024 15:19:07 +0000 (15:19 +0000)
committerSam Leonard <sam.leonard@codethink.co.uk>
Wed, 13 Mar 2024 15:31:52 +0000 (15:31 +0000)
src/vmspawn/vmspawn.c

index 967f701e05c7383ab3e22dc76573f0fa12ba1b08..6d67d0f6e431e6cf94b1b61683d3b6e678a35f1b 100644 (file)
@@ -1571,6 +1571,10 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) {
                                 if (r < 0)
                                         return log_oom();
 
+                                r = strv_extend(&cmdline, "-smbios");
+                                if (r < 0)
+                                        return log_oom();
+
                                 r = strv_extendf(&cmdline, "type=11,value=io.systemd.boot.kernel-cmdline-extra=%s", escaped_kcl);
                                 if (r < 0)
                                         return log_oom();