From: Lennart Poettering Date: Mon, 27 May 2024 12:34:10 +0000 (+0200) Subject: vmspawn: report "systemd-vmspawn" as "service" to machined X-Git-Tag: v257-rc1~1157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73fade298ab56f4bc556484622691f04a8805dff;p=thirdparty%2Fsystemd.git vmspawn: report "systemd-vmspawn" as "service" to machined 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. --- diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index 326722db05b..73e165feadd 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -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,