Bug#794969: udev: change in network device naming scheme unnecessarily and incorrectly renames WiMAX devices

brian m. carlson sandals at crustytoothpaste.net
Tue Aug 11 00:25:36 BST 2015


On Sun, Aug 09, 2015 at 05:54:29PM +0200, Marco d'Itri wrote:
> On Aug 08, "brian m. carlson" <sandals at crustytoothpaste.net> wrote:
> 
> > Previously, my WiMAX device was named something like wmx0.  Now, it
> > appears it's been renamed to enx<MAC Address>.  First of all, the name
> > has changed from what it used to be, and now I have to check that it's
> > not broken anything.  There wasn't supposed to be a naming change for
> > people with the persistent-net rules in place.
> Indeed: what was the content of your 70-persistent-net.rules file?
> I suspect that persistent naming just never worked for you for this
> interface.

The interface is clearly missing:

  # PCI device 0x8086:/sys/devices/pci0000:00/0000:00:19.0 (e1000e)
  SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f0:de:f1:b8:36:fd", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
  
  # PCI device 0x8086:/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0 (iwlwifi)
  SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="64:80:99:4f:73:a0", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

I suppose the idea was to skip USB devices, thinking that they were all
removable, but I can't be certain without seeing the generator, which
has been removed.

> > Secondly, this is not an Ethernet device, so en is not correct (it
> > should be ww).  The device is on the USB bus (using the driver
> > i2400m-usb).
> I do not think that such a distinction is relevant here.

If you're going to autogenerate the name, please autogenerate it such
that it's consistent with the naming scheme.  The comment in
udev-builtin-net_id.c indicates that ww is appropriate here.  People
should be able to predict interface names, such that configuration can
be autogenerated (e.g. for puppet).  Naming some WWAN devices as ww but
others as en is silly.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150810/850eaeb5/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list