[systemd-devel] [PATCH] install: Do not enable systemd-networkd by default

Tom Gundersen teg at jklm.no
Fri Feb 21 08:03:13 PST 2014

On Fri, Feb 21, 2014 at 4:44 PM, Michael Biebl <mbiebl at gmail.com> wrote:
> 2014-02-21 16:31 GMT+01:00 Jason A. Donenfeld <Jason at zx2c4.com>:
>> On Fri, Feb 21, 2014 at 4:19 PM, Lennart Poettering
>> <lennart at poettering.net> wrote:
>>> Well, ultimately it's up the distributions to decide what they want to
>>> enable and what not.
>> True, but this requires manual patching and fixing up of `make
>> install`, which is a bummer.
>>> I think networkd is a good choice, especially
>>> since it doesn't break anything without configs around.
>> But it shouldn't even run when it doesn't have configs. It seems
>> totally superfluous and wasteful to do so.
> What about Zbigniews idea of using something like:
> ConditionDirectoryNotEmpty=/etc/systemd/network/
> Would that work?

We'd have to look in all the possible folders, and there may (and due
to 99-deafult.link, always will) be files there, so we don't really
have a reasonable test. When we start shipping some default .network
files it becomes even harder (e.g. the thing Lennart mentioned which
will only apply for given interfaces that we create ourselves inside
systemd-nspawn). We'll then always have config files, but they may not
necessarily apply (and we can't know whether or not they ever will).



More information about the systemd-devel mailing list