]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: set CoredumpReceive=yes on container's scope when --boot is set 29272/head
authorNick Rosbrook <enr0n@ubuntu.com>
Thu, 12 Oct 2023 17:39:56 +0000 (13:39 -0400)
committerNick Rosbrook <enr0n@ubuntu.com>
Fri, 13 Oct 2023 19:28:50 +0000 (15:28 -0400)
commit411d8c72ecc31f1e7ecfa70b40e7766093aa14b2
tree131208fe7b7f2f32fe6b0de48c5402607277b999
parentcfc015f09e72c7ee4e77daca8382b719f843381e
nspawn: set CoredumpReceive=yes on container's scope when --boot is set

When --boot is set, and --keep-unit is not, set CoredumpReceive=yes on
the scope allocated for the container. When --keep-unit is set, nspawn
does not allocate the container's unit, so the existing unit needs to
configure this setting itself.

Since systemd-nspawn@.service sets --boot and --keep-unit, add
CoredumpReceives=yes to that unit.
src/nspawn/nspawn-register.c
src/nspawn/nspawn-register.h
src/nspawn/nspawn.c
units/systemd-nspawn@.service.in