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

2025-06-17 Thread He, Guocai (CN)
_ From: Andrei Borzenkov Sent: Tuesday, June 17, 2025 10:47 PM To: Mantas Mikulėnas ; He, Guocai (CN) ; systemd-devel@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 c

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

2025-06-17 Thread Andrei Borzenkov
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 noth

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

2025-06-17 Thread Kevin P. Fleming
On Tue, Jun 17, 2025, at 02:20, Mantas Mikulėnas wrote: > nfsroot= causes the interface to be brought up very early, before udev > starts, and before it has a chance to apply its rules and .link files. > > > > Before kernel 6.2, it was not possible to rename interfaces that were already > "up"

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

2025-06-16 Thread Mantas Mikulėnas
nfsroot= causes the interface to be brought up very early, before udev starts, and before it has a chance to apply its rules and .link files. Before kernel 6.2, it was not possible to rename interfaces that were already "up" (see linux commit bd039b5ea2a91). On another note, even though Nam

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

2025-06-16 Thread He, Guocai (CN)
Hi, I want to create a link file and want to match the mac to rename eth0 to mycustometh but fail. seems that the link file is not applied? The fllowing is my step and some logs: #1 etho mac udevadm info /sys/class/net/eth0 E: ID_NET_NAME_MAC=enxa4bf016bfaf5 #2 link file root@intel-x86-64:~#

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

2025-06-16 Thread guocai he
Hi, I want to create a link file and want to match the mac to rename eth0 to mycustometh but fail. seems that the link file is not applied? The fllowing is my step and some logs: ##1 etho mac udevadm info /sys/class/net/eth0    E: ID_NET_NAME_MAC=enxa4bf016bfaf5 ##2 link file root@intel-x86-6