By default, the NamePolicy=[1] (as configured in
/usr/lib/systemd/network/99-default.link) is:

[Link]
NamePolicy=keep kernel database onboard slot path

This means that if the kernel claims to assign a predictable name, then
that will take precedence over other policies, including the "onboard"
policy, which appears to be the one you are expecting. So, maybe the
previous kernel was just issuing ethX, which is not predictable, and
"onboard" was the winning rename policy.

It's also possible that something else is renaming the interface first,
which means that the "keep" policy would take effect.

Now, I think if you want to continue relying on the "onboard" policy,
you should use a drop-in to give that policy higher priority. E.g.:

$ mkdir -p /etc/systemd/network/99-default.link.d
$ cat > /etc/systemd/network/99-default.link.d/name-policy.conf
[Link]
NamePolicy=onboard keep kernel database slot path

I think that should fix your problem.

[1]
https://www.freedesktop.org/software/systemd/man/latest/systemd.link.html#NamePolicy=

** Changed in: systemd (Ubuntu)
       Status: New => Incomplete

** Also affects: linux (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2077159

Title:
  i40e interfaces renamed after upgrade from hwe-6.5

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2077159/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to