[systemd-devel] [EXT] Re: "[Match]" section in systemd.link file doesn't match interface

Mantas Mikulėnas grawity at gmail.com
Wed Mar 4 07:51:46 UTC 2020


On Wed, Mar 4, 2020 at 9:45 AM Ulrich Windl <
Ulrich.Windl at rz.uni-regensburg.de> wrote:

> >>> Felix <systemd-devel at fj.hamme.net> schrieb am 03.03.2020 um 15:20 in
> Nachricht
>
> <28933_1583245223_5E5E67A7_28933_1176_1_13488396-f23a-8701-3f64-260f060119d5 at ham
> e.net>:
> > Thank you for your help! I've found my problem and it was way simpler
> > than I thought.
> >
> > The systemd.link manpage mentions:
> > "The first (in lexical order) of the link files that matches a given
> > device is applied. Note that a default file 99-default.link is shipped
> > by the system. Any user-supplied .link should hence have a lexically
> > earlier name to be considered at all."
> >
> > My .link file wasn't considered because its file name came lexically
> > after '99-default.link'.
>
> A word of warning: With Unicode collating sequences the ordering of such
> files can sometimes be "unexpected" (e.g. comparing '-' with '.').
>

AFAIK systemd itself always uses ASCIIbetical order (as it should). So it
might not match with `ls` and `sort`, true, but at least it should work
consistently regardless of locale.

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20200304/335bb65e/attachment.htm>


More information about the systemd-devel mailing list