bookworm versus noble - i40e netdevice name discrepancy

Robert Moulton rmoulton at uw.edu
Wed Jun 5 20:52:01 CEST 2024


Is it reasonable to presume that a proper fix would be expected with a
debian-trixie-based FAI release?

Following Thomas' suggestion, My current magic sed-foo work-around:

# diff  /var/tmp/30-interface.orig /srv/fai/config/scripts/DEBIAN/30-interface
86a87,91
>             # explicitly set noble-specific name for i40e device
>             driver=$(udevadm info /sys/class/net/$NIC1 | grep ID_NET_DRIVER | awk -F'[=]' '{ print $2 }')
>             if [[ "$driver" == "i40e" ]]; then
>                 sed -i -e "s/${NIC1}/${NIC1}np0/g" $target/etc/netplan/01-${NIC1}.yaml
>             fi

On Tue, Jun 4, 2024 at 5:24 AM Steffen Grunewald
<steffen.grunewald at aei.mpg.de> wrote:
>
> 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
> ~~~


More information about the linux-fai mailing list