Re: [systemd-devel] 99-default.link which such a high number ?

2020-09-25 Thread Reindl Harald



Am 25.09.20 um 16:46 schrieb Francis Moreau:
> I want to override /usr/lib/systemd/network/99-default.link so I need
> to create a file starting with "99-" prefix.
> 
> This doesn't seem logical to me because the numbers are supposed to
> encode the priority however nothing is left to the user if the
> defaults used is 99.
> 
> I find more logical for the defaults to use a small number such as 10.
> 
> What am I missing ?

/etc/systemd/network/99-default.link
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] 99-default.link which such a high number ?

2020-09-25 Thread Mike Gilbert
On Fri, Sep 25, 2020 at 10:46 AM Francis Moreau  wrote:
>
> Hello,
>
> I want to override /usr/lib/systemd/network/99-default.link so I need
> to create a file starting with "99-" prefix.
>
> This doesn't seem logical to me because the numbers are supposed to
> encode the priority however nothing is left to the user if the
> defaults used is 99.
>
> I find more logical for the defaults to use a small number such as 10.
>
> What am I missing ?

To quote systemd.link(5):

"The first (in lexical order) of the link files that matches a given
device is applied."

So, lower numbered files take priority over higher numbered files,
assuming the device is matched.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] 99-default.link which such a high number ?

2020-09-25 Thread Mantas Mikulėnas
On Fri, Sep 25, 2020, 17:46 Francis Moreau  wrote:

> Hello,
>
> I want to override /usr/lib/systemd/network/99-default.link so I need
> to create a file starting with "99-" prefix.
>
> This doesn't seem logical to me because the numbers are supposed to
> encode the priority however nothing is left to the user if the
> defaults used is 99.
>

It depends on whether the _first_ matching file is used, or whether the
_last_ matching file is used – different programs choose differently. (If
the program merges all files, it still depends on whether the first value
of a particular setting is used, or whether the last one is used.)

As mentioned in systemd.link(5), udev only chooses one .link file per
interface – just the first one that matched – therefore 00 is the highest
priority.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] 99-default.link which such a high number ?

2020-09-25 Thread Francis Moreau
Hello,

I want to override /usr/lib/systemd/network/99-default.link so I need
to create a file starting with "99-" prefix.

This doesn't seem logical to me because the numbers are supposed to
encode the priority however nothing is left to the user if the
defaults used is 99.

I find more logical for the defaults to use a small number such as 10.

What am I missing ?
-- 
Francis
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] journalctl: how to view pstore logs files

2020-09-25 Thread Santosh
Hi,

What is the journalctl command to view pstore log files logged into the
journal by systemd-pstore?

I'm able to view it using command:
armbox8:/home/bot1# journalctl -o export -u systemd-pstore -b
Is this the correct command? This seems to be not documented.

Thanks,
Santosh
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel