]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: report "systemd-vmspawn" as "service" to machined
authorLennart Poettering <lennart@poettering.net>
Mon, 27 May 2024 12:34:10 +0000 (14:34 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 14 Jun 2024 20:22:02 +0000 (21:22 +0100)
The "service" field that one is supposed to pass to machine is supposed
to indicate the implementation of the client, not the service unit the
client runs in (which is typically even a scope unit, not a system
unit). Hence fix that, and make it closely match what systemd-nspawn
does.

src/vmspawn/vmspawn.c

index 326722db05b7995e9f9c398bc721e39035c8b2a5..73e165feaddc8149372d0e62e616c857d8e39f13 100644 (file)
@@ -2051,7 +2051,7 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) {
                                 bus,
                                 arg_machine,
                                 arg_uuid,
-                                trans_scope,
+                                "systemd-vmspawn",
                                 arg_directory,
                                 child_cid,
                                 child_cid != VMADDR_CID_ANY ? vm_address : NULL,