Bug#806787: systemd-container: machines.target not enabled by default

Ansgar Burchardt ansgar at debian.org
Wed Dec 30 15:48:10 GMT 2015


Michael Biebl <biebl at debian.org> writes:
> On Tue, 01 Dec 2015 12:32:06 +0100 Ansgar Burchardt <ansgar at debian.org>
> wrote:
>> machines.target is not enabled by default.  This means machines
>> configured to start at boot with "machinectl enable <machine>" will
>> actually not start unless one also enables machines.target manually.
>
> I wonder whether this is an upstream bug and
> machinectl enable <foo> should enable machines.target implicitly if not
> yet enabled or at least issue a warning.

I don't think that is an upstream bug: if I run "systemctl enable
${something}", I expect ${something} to be enabled as specified in the
[Install] section.  This doesn't necessarily imply that the service will
be started at boot (in case the symlink is placed in a .target that does
not get started).

However I do not expect "systemctl enable ${something}" to also enable
${something-else} in case the symlink
${something-else}.wants/${something} was created.  The same probably
also holds for "machinectl enable ${something}" which just enables a
"systemd-nspawn@${something}.service".

But I think that "machines.target" should be enabled by default.

Ansgar




More information about the Pkg-systemd-maintainers mailing list