eth0 interface name change fails on Pi 3/3+

Bug #1922266 reported by Dave Jones on 2021-04-01
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-meta (Ubuntu)
Undecided
Unassigned
Hirsute
Undecided
Unassigned
ubuntu-settings (Ubuntu)
Undecided
Unassigned
Hirsute
Undecided
Unassigned

Bug Description

The netplan configuration in ubuntu-raspi-settings (and more widely, the network-config in the gadget used on the server images) fails to rename the internal ethernet interface on Pi 3B and 3B+ models from "en<mac-address>" to "eth0". In the netplan case this is because the driver matching logic doesn't handle space-separate driver matches (although the underlying networkd system does); in the cloud-init case it simply refuses to rename interfaces that aren't matched by full MAC address.

The intended fix is to stop attempting to do this via netplan or cloud-init, and simply handle this via a networkd .link file in ubuntu-raspi-settings. This will require an update to the relevant seeds as this package is currently only pulled into ubuntu-desktop-raspi, not ubuntu-server-raspi.

Changed in ubuntu-meta (Ubuntu):
milestone: none → ubuntu-21.04
Revision history for this message
Dave Jones (waveform) wrote :
Changed in ubuntu-meta (Ubuntu):
status: New → Fix Released
Changed in ubuntu-settings (Ubuntu):
milestone: none → ubuntu-21.04
Revision history for this message
Brian Murray (brian-murray) wrote :

Is this ubuntu-settings task still necessary or should it be closed?

Revision history for this message
Dave Jones (waveform) wrote :

It's still necessary; I've got the changes ready but was holding off as there's possibly another fix that may need to go into this package too (LP: #1900904). But it's getting close to release so I'll push it anyway and deal with the other ticket separately.

Revision history for this message
Dave Jones (waveform) wrote :

Attaching debdiff; test builds are available from the following PPA:

https://launchpad.net/~waveform/+archive/ubuntu/ubuntu-settings/+packages

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-settings - 21.04.3

---------------
ubuntu-settings (21.04.3) hirsute; urgency=medium

  [ William 'jawn-smith' Wilson ]
  * Adding 99-gpio.rules udev rules for Raspberry Pi GPIO functionality
    (LP: #1923672)

  [ Dave Jones ]
  * Replace netplan eth0 renaming rules for raspi with networkd link unit
    (LP: #1922266)

 -- Dave Jones <email address hidden> Tue, 13 Apr 2021 23:02:42 +0100

Changed in ubuntu-settings (Ubuntu Hirsute):
status: New → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

We have also pushed out a new livecd-rootfs that manually adds ubuntu-raspi-settings as a dependency of the server images (temporary before we switch to using seeds).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers