[systemd-devel] [RFC][PATCH] udev: add network link configuration tool

Tom Gundersen teg at jklm.no
Sat Oct 26 21:57:55 CEST 2013


On Sat, Oct 26, 2013 at 8:40 PM, Tom Gundersen <teg at jklm.no> wrote:
> On Sat, Oct 26, 2013 at 8:39 PM, Jan Engelhardt <jengelh at inai.de> wrote:
>> On Saturday 2013-10-26 20:32, Kay Sievers wrote:
>>>On Sat, Oct 26, 2013 at 8:16 PM, Jan Engelhardt <jengelh at inai.de> wrote:
>>>> On Saturday 2013-10-26 16:16, Tom Gundersen wrote:
>>>>>
>>>>>The tool is configured by .link files in /etc/net/links/ (with the usual
>>>>>overriding logic in /run and /lib). The first (in lexicographical order)
>>>>>matching .link file is applied to a given device, and all others are ignored.
>>>>
>>>> Is there anything else in /etc/net that we need another subdirectory,
>>>> /etc/net/links?
>>>
>>>There will probably be config for DNS, NTP, and all these things in
>>>the future, therefore we need a subdirectory for these files.
>>>[...] The 3 types [link, netif, ...] could maybe live in one directory
>>>though.
>>
>> Indeed I was thinking along that line: Because they have different
>> suffixes, a wildcard - for where such will be used - would be
>> unambiguous enough to allow them to share a dir.
>
> Indeed, this makes the most sense. I'll change it to /etc/net before committing.

So after a bit more discussion with Kay, we came to the conclusion
that some sort of subdir will be necessary as we want to store other
kinds of configuration in /etc/net as well, which don't belong with
the *.links files.

I'll keep the subdir as 'links' for now, but we might want to revisit
this before the next release if we come up with a better name.

Cheers,

Tom


More information about the systemd-devel mailing list