Handling of renamed interfaces
Beniamino Galvani
bgalvani at redhat.com
Thu Jan 4 15:21:25 UTC 2024
On Thu, Jan 04, 2024 at 02:48:08PM +0100, Harald Dunkel wrote:
> On 2024-01-04 09:12:38, Beniamino Galvani wrote:
> >
> > It doesn't have to predict the future. udev first optionally renames
> > the interface, and then always emits the event. NetworkManager waits
> > for the event before managing the interface. When the device
> > transitions from "unmanaged" to "unavailable", it means that NM
> > started managing it.
> >
>
> AFAIU network interfaces are renamed even before udev or NM have been
> started, while the initrd is still running:
udev also runs in initrd. The renaming of interfaces according to
whathever rule is configured in the system (e.g. predictable interface
naming) is done by udev.
Beniamino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/networkmanager/attachments/20240104/00501f0f/attachment.sig>
More information about the Networkmanager
mailing list