vmspawn: by default, let machined register a cgroup for VMs
authorLennart Poettering <lennart@poettering.net>
Mon, 27 May 2024 11:30:31 +0000 (13:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Jun 2024 15:49:26 +0000 (17:49 +0200)
commitecc4287dee2d81570240625092813154ca770dea
treee8834a867dce10d6185cc74d6e8e54056b92cb15
parente16be05858d87e9783fae5584ad3378275f780f1
vmspawn: by default, let machined register a cgroup for VMs

This mimics what we do in nspawn: if registration is enabled we'll let
machined allocate a scope unit for us. When --keep-unit is used we'll
register without creating a new scope.

This brings behaviour more inline with what nspawn does, exposing the
same sets of options.
src/vmspawn/vmspawn-register.c
src/vmspawn/vmspawn-register.h
src/vmspawn/vmspawn.c
test/units/TEST-50-DISSECT.mountfsd.sh