Document that 73-usb-net-by-mac.link needs to be masked together with
99-default.link to disable the systemd naming scheme and keep the
kernel-provided interface names.
Closes: #946196
Replace 73-usb-net-by-mac.rules with 73-usb-net-by-mac.link. The .link
file provides the same functionality but makes it easier to set a custom
name for USB network adapters via the systemd.link mechanism.
Closes: #941636
Thanks: Benjamin Poirier
While initrd update is already being mentioned in the introductory
section, it is easy to miss when going through the migration steps, so
explicitly mention it again. Also add a warning about keeping a fallback
on misconfigurations, and the possibility to migrate one interface at a
time.
Thanks to Karl O. Pinc for the suggestions!
Closes: #881769
- 01-mac-for-usb.link got replaced with 73-usb-net-by-mac.rules
- /etc/systemd/network/50-virtio-kernel-names.link is an upgrade
transition for VMs with virtio
- Describe *.link files as a simpler/less error prone (but also less
flexible) way of customizing interface names.
Closes: #868002
Disabling 80-net-setup-link.rules will also cause ID_NET_DRIVER to not be set
any more, which breaks 80-container-ve.network and matching on driver name in
general. So disable the actual default link policy instead.
Still keep testing for 80-net-setup-link.rules in the upgrade fix and
73-usb-net-by-mac.rules to keep the desired behaviour on systems which already
disabled ifnames via that udev rule.
See https://lists.freedesktop.org/archives/systemd-devel/2016-November/037805.html
Deprecate the old 75-persistent-net-generator.rules.
See the ML discussion for details:
https://lists.debian.org/debian-devel/2015/05/msg00170.htmlhttps://lists.debian.org/debian-devel/2015/06/msg00018.html
- Drop Make-net.ifnames-opt-in-instead-of-opt-out.patch, to use
net.ifnames by default.
- Revert-udev-network-device-renaming-immediately-give.patch: Adjust
patch comment.
- Drop 75-persistent-net-generator.rules, write_net_rules helper and
rule_generator.functions.
- Adjust udev's README.Debian accordingly, and describe the migration.
This needs to happen manually as there is no robust way of doing this
automatically.
- Add udev NEWS file for announcing this change and pointing to udev's
README.
- udev.postinst: Drop write_interfaces_rules().
- udev.postinst: Disable net.ifnames on systems which did not support
75-persistent-net-generator.rules (most importantly, virtualized guests)
to avoid changing network interface names on upgrade.
LP: #1454254
The patches from udev were either merged upstream, applied directly,
added as files to debian/extra/ or dropped:
- debian/patches/commit-4b50a3d
Applied upstream in 4b50a3d004
- debian/patches/fix_gtkdoc_oot
Fixed upstream
- debian/patches/libudevpc_no_librt
Fixed upstream in e712ffcce6
- debian/patches/vio_type
Dropped for now.
- debian/patches/debian_rules
Added as debian/extra/rules/*
- debian/patches/extra_agents
Added as debian/extra/*.agent and debian/extra/hotplug.functions
- debian/patches/extra_initramfs
Added as debian/extra/initramfs.*
- debian/patches/extra_installer
Added as debian/extra/udev.*
- debian/patches/extra_modprobeconf
Added as debian/extra/fbdev-blacklist.conf and
debian/extra/make-fbdev-blacklist
- debian/patches/extra_misc
Added as debian/extra/links.conf and debian/extra/create_static_nodes
- debian/patches/dont-build-some-helpers
Dropped, since we will use the upstream firmware agent now
- debian/patches/libgudev_in_usr
Applied as 418b0a2d41
- debian/patches/rules_compat_qemu
Dropped, only needed for kernel versions <= 2.6.32
- debian/patches/use_run_tmpfs
Dropped, since wheezy /run is mandatory
- debian/patches/dev_root_rule
Dropped, discouraged upstream
- debian/patches/udevd_in_sbin
Dropped, we will use the $libexec path now in the .service file and
provide compat symlinks
- udev_conf_comments
Applied as c82d84e916