[systemd-devel] Masking .network files
Tom Gundersen
teg at jklm.no
Sat Apr 5 03:24:07 PDT 2014
On Sat, Apr 5, 2014 at 11:39 AM, Samuli Suominen <ssuominen at gentoo.org> wrote:
> On 05/04/14 12:26, Tom Gundersen wrote:
>> matching file will be applied. The 'masking' logic that you know from
>> unit files does not really make much sense for .network files (but
>> maybe this is something we should change...). Symlinks to /dev/null
>> are just treated as empty .network files, so their meaning is "no
>> [Match] section", which matches everything and "no [Network] section",
>> which does nothing. I suppose this may be used to express "ignore any
>> subsequent .network files", but I doubt that is a particularly useful
>> thing to do.
>
> I know you are talking about .network files, but can I get verify on...
>
> You can still override /lib/systemd/network/99-default.link by
> symlinking /etc/systemd/network/99-default.link to /dev/null, right?
Hm, yes. But the same logic applies, any subsequent .link files would
also be masked (but such subsequent .link files would never have
applied in the first place as 99-default.link matches everything.
Cheers,
Tom
More information about the systemd-devel
mailing list