[systemd-devel] systemd link file rename eth0 do not take effect

He, Guocai (CN) Guocai.He.CN at windriver.com
Wed Jun 18 01:43:07 UTC 2025


All:

Thank you for all your reply and the useful advice.

There is progress on this issue

In logs I find this:
Jun 17 02:46:02 intel-x86-64 systemd-udevd[252]: Skipping overridden file '/lib/udev/rules.d/80-net-setup-link.rules'.

So I find:
root at intel-x86-64:~# ls -l /etc/udev/rules.d/80-net-setup-link.rules
lrwxrwxrwx 1 root root 9 Mar  9  2018   /etc/udev/rules.d/80-net-setup-link.rules -> /dev/null

I remove the file and it works.

I don't know why and where this file /etc/udev/rules.d/80-net-setup-link.rules from.

Thanks,
Guocai
________________________________
From: Andrei Borzenkov <arvidjaar at gmail.com>
Sent: Tuesday, June 17, 2025 10:47 PM
To: Mantas Mikulėnas <grawity at gmail.com>; He, Guocai (CN) <Guocai.He.CN at windriver.com>; systemd-devel at lists.freedesktop.org <systemd-devel at lists.freedesktop.org>
Subject: Re: [systemd-devel] systemd link file rename eth0 do not take effect

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

17.06.2025 09:20, Mantas Mikulėnas wrote:
>
>
> On another note, even though NamePolicy doesn't provide any names in
> your case, you should still clear it in general:
>
> [Link]
>
> NamePolicy=
>
> Name=mycustometh
>

Why? NamePolicy is empty by default and only one .link file is applied.
There should be nothing to clear unless I miss something.

And any drop-in is processed after the file itself so it is impossible
to clear settings in drop-ins, correct?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20250618/c85a987d/attachment.htm>


More information about the systemd-devel mailing list