Bug#946196: udev: documented way to prevent interface renaming stopped working

Michael Biebl biebl at debian.org
Thu Dec 5 10:34:52 GMT 2019


Am 05.12.19 um 09:55 schrieb Sven Joachim:
> Package: udev
> Version: 244-3
> Severity: important
> 
> According to /usr/share/doc/udev/README.Debian.gz,
> 
> ln -s /dev/null /etc/systemd/network/99-default.link
> 
> should be sufficient to keep the kernel-provided network interface
> names.  Despite this symlink being present, after upgrading systemd and
> udev from 243-9 and rebooting I found that my USB WiFi adapter had
> changed its name from wlan0 to wlxf81a67208cf2:
> 

The old 73-usb-net-by-mac.rules file contained:

    TEST!="/etc/systemd/network/99-default.link", \

This check can't be expressed via .link files.
The new 73-usb-net-by-mac.link link file does respect the net.ifnames=0
kernel command line parameter, though.

I don't see a good way of fixing this with .link files, aside from
documenting this change. We could say that users have to symlink
73-usb-net-by-mac.link as well (or symlink 80-net-setup-link.rules,
which does the actual renaming).

The other alternative would be to revert the changes from #941636, but I
kinda like the new .link based approach and would prefer to keep it.

Thoughts?

Michael


-- 
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: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20191205/e150eb2b/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list