Re: bookworm versus noble - i40e netdevice name discrepancy

2024-06-04 Diskussionsfäden Thomas Lange
Now the question is if this is a change because of v255, or if Ubuntu
is doing things different to Debian. After reading the URL below I
guess it's because of the version.
Currently I have no idea how to properly fix this. I would use some
magic shell/sed commands for this. A proper fix would be to use a
newer systemd version during the FAI installation, but that's not
easy/possible currently.

For more details see
https://www.freedesktop.org/software/systemd/man/latest/systemd.net-naming-scheme.html

regards Thomas

> On Mon, 3 Jun 2024 13:41:19 -0700, Robert Moulton  said:

> indeed, you're right, for noble the scheme is v255:
> $ diff udevadm-bookworm.txt udevadm-noble.txt
> 1,3c1,3
> < P: /devices/pci:64/:64:02.0/:65:00.0/net/eno1
> < M: eno1
> < R: 1
> ---
>> P: /devices/pci:64/:64:02.0/:65:00.0/net/eno1np0
>> M: eno1np0
>> R: 0
> 6c6


Re: bookworm versus noble - i40e netdevice name discrepancy

2024-06-04 Diskussionsfäden Steffen Grunewald
On Tue, 2024-06-04 at 14:02:34 +0200, Thomas Lange wrote:
> Now the question is if this is a change because of v255, or if Ubuntu
> is doing things different to Debian. After reading the URL below I
> guess it's because of the version.
> Currently I have no idea how to properly fix this. I would use some
> magic shell/sed commands for this. A proper fix would be to use a
> newer systemd version during the FAI installation, but that's not
> easy/possible currently.

What about extracting the interface names used during FAI installation,
and creating {/etc,/lib}/systemd/network/*.link files that would be used
by systemd to rename the interfaces found at system startup?

man 5 systemd.link

Best,
 Steffen

-- 
Steffen Grunewald, Cluster Administrator
Max Planck Institute for Gravitational Physics (Albert Einstein Institute)
Am Mühlenberg 1 * D-14476 Potsdam-Golm * Germany
~~~
Fon: +49-331-567 7274
Mail: steffen.grunewald(at)aei.mpg.de
~~~