Bug#824491: udev: impossible to disable predictable network interface names
Michael Biebl
biebl at debian.org
Mon May 16 20:52:10 BST 2016
Am 16.05.2016 um 21:30 schrieb Steinar H. Gunderson:
> On Mon, May 16, 2016 at 09:22:45PM +0200, Michael Biebl wrote:
>> I'm using
>> lsinitramfs /boot/initrd.img-$(uname -r) | grep rules
>
> Ah, there's an lsinitramfs! Well, there the file is, indeed.
>
>>> May 16 19:10:21 soldroid systemd-udevd[1022]: IMPORT '/sbin/ifrename -u -i eth0' /lib/udev/rules.d/19-ifrename.rules:13
>> Can you purge the ifrename package and test again. This is just to
>> ensure why don't have any weird interactions
>
> Sure. Do note that I only installed ifrename half an hour or so ago;
> most of my tests have been without it.
>
> May 16 19:25:44 soldroid sudo[1110]: pam_unix(sudo:session): session closed for user root
> May 16 19:25:50 soldroid kernel: usbcore: deregistering interface driver r8152
> May 16 19:25:50 soldroid dhclient[1053]: receive_packet failed on enx001e06303327: Network is down
> May 16 19:25:50 soldroid systemd-udevd[511]: seq 8679 queued, 'remove' 'queues'
> May 16 19:25:50 soldroid systemd-udevd[511]: timestamp of '/lib/udev/rules.d' changed
> May 16 19:25:50 soldroid systemd-udevd[511]: Unload module index
> May 16 19:25:50 soldroid systemd-udevd[511]: Unloaded link configuration context.
> May 16 19:25:50 soldroid systemd-udevd[511]: === trie on-disk ===
> May 16 19:25:50 soldroid systemd-udevd[511]: tool version: 229
> May 16 19:25:50 soldroid systemd-udevd[511]: file size: 6841701 bytes
> May 16 19:25:50 soldroid systemd-udevd[511]: header size 80 bytes
> May 16 19:25:50 soldroid systemd-udevd[511]: strings 1755245 bytes
> May 16 19:25:50 soldroid systemd-udevd[511]: nodes 5086376 bytes
> May 16 19:25:50 soldroid systemd-udevd[511]: Load module index
> May 16 19:25:50 soldroid systemd-udevd[511]: Network interface NamePolicy= disabled on kernel command line, ignoring.
This means net.ifnames=0 was correctly parsed from the kernel command line.
> May 16 19:25:50 soldroid systemd-udevd[511]: timestamp of '/etc/systemd/network' changed
> May 16 19:25:50 soldroid systemd-udevd[511]: timestamp of '/usr/lib/systemd/network' changed
> May 16 19:25:50 soldroid systemd-udevd[511]: timestamp of '/lib/systemd/network' changed
> May 16 19:25:50 soldroid systemd-udevd[511]: Parsed configuration file /lib/systemd/network/99-default.link
> May 16 19:25:50 soldroid systemd-udevd[511]: Created link configuration context.
> May 16 19:25:50 soldroid systemd-udevd[511]: timestamp of '/etc/udev/rules.d' changed
> May 16 19:25:50 soldroid systemd-udevd[511]: timestamp of '/lib/udev/rules.d' changed
> May 16 19:25:50 soldroid systemd-udevd[511]: Skipping overridden file: /lib/udev/rules.d/80-net-setup-link.rules.
This means 80-net-setup-link.rules was correctly overridden.
> May 16 19:25:59 soldroid systemd-udevd[1523]: IMPORT builtin 'net_id' /lib/udev/rules.d/73-special-net-names.rules:14
> May 16 19:25:59 soldroid systemd-udevd[1523]: NAME 'enx001e06303327' /lib/udev/rules.d/73-special-net-names.rules:14
> May 16 19:25:59 soldroid kernel: r8152 5-1:1.0 enx001e06303327: renamed from eth0
This is the culprit, i.e. 73-special-net-names.rules. Blacklisting that
rules file should give you the kernel names back.
Afaics, your issue might already be fixed in 229-6 by
https://anonscm.debian.org/cgit/pkg-systemd/systemd.git/commit/?id=b3e7c6ee792d22c05c03625e749c43a9738efa95
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20160516/606af7b1/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list