More checking... on Trusty, the file is generated by
/lib/udev/write_net_rules:

bladernr@sulaco:~$ cat /etc/udev/rules.d/70-persistent-net.rules 
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.

And checking my Xenial system (one of them) write_net_rules does not exist:
bladernr@galactica:/etc/udev/rules.d$ ls /lib/udev
ata_id             hplj1000   hpljP1008         iphone-set-info          scsi_id
cdrom_id           hplj1005   hpljP1505         ipod-set-info            
udev-add-printer
collect            hplj1018   hpljP1505n        mtd_probe                
udev-configure-printer
console-setup-tty  hplj1020   hwclock-set       mtp-probe                
usb_modeswitch
hdparm             hpljP1005  hwdb.bin          pcmcia-check-broken-cis  v4l_id
hid2hci            hpljP1006  hwdb.d            pcmcia-socket-startup
hotplug.functions  hpljP1007  ifupdown-hotplug  rules.d


Now, comparing the packages installed in the two that include udev in the name:

Trusty:
bladernr@sulaco:~$ dpkg -l |grep udev|awk '{print $2 "   " $3}'
gir1.2-gudev-1.0   1:204-5ubuntu20.15
libgudev-1.0-0:amd64   1:204-5ubuntu20.15
libgudev-1.0-0:i386   1:175-0ubuntu9
libudev0:amd64   175-0ubuntu13
libudev0:i386   175-0ubuntu13
libudev1:amd64   204-5ubuntu20.15
libudev1:i386   204-5ubuntu20.15
python3-pyudev   0.16.1-2build1
system-config-printer-udev   1.4.3+20140219-0ubuntu2.6
udev   204-5ubuntu20.15


Xenial:
bladernr@galactica:/etc/udev/rules.d$ dpkg -l |grep udev |awk '{print $2 "   " 
$3}'
gir1.2-gudev-1.0:amd64   1:230-2
libgudev-1.0-0:amd64   1:230-2
libudev1:amd64   228-6ubuntu1
system-config-printer-udev   1.5.7+20150819-0ubuntu5
udev   228-6ubuntu1

the manpage for udev in Xenial says:
RULES FILES
       The udev rules are read from the files located in the system rules 
directory
       /lib/udev/rules.d, the volatile runtime directory /run/udev/rules.d and 
the local
       administration directory /etc/udev/rules.d. All rules files are 
collectively sorted and

SO looking at /lib/udev/rules.d for Trusty:
bladernr@sulaco:~$ ls /lib/udev/rules.d/ |grep net
40-bridge-network-interface.rules
40-vlan-network-interface.rules
75-net-description.rules
75-persistent-net-generator.rules
77-mm-huawei-net-port-types.rules

and Xenial:
bladernr@galactica:/etc/udev/rules.d$ ls /lib/udev/rules.d/ |grep net
75-net-description.rules
77-mm-huawei-net-port-types.rules
80-net-setup-link.rules

Xenial is missing one. If this is intentional, how does one go about
setting persistent network names?

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

Title:
  No udev persistent rules in Xenial = strange device names for NICs

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

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

Reply via email to