[systemd-devel] systemd link file rename eth0 do not take effect
Kevin P. Fleming
lists.systemd-devel at kevin.km6g.us
Tue Jun 17 10:07:19 UTC 2025
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" (see linux commit bd039b5ea2a91).
>
>
>
> 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
>
Also, if you are using Debian or a Debian-derived distribution, you'll need to run 'update-initramfs -u -k all' after adding, removing, or editing .link files, as they are copied into the initramfs and applied there before 'regular' userspace udev runs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20250617/5d2d2bb4/attachment.htm>
More information about the systemd-devel
mailing list