Commit Graph

19 Commits

Author SHA1 Message Date
Michael Biebl
1d13f662e4 Update documentation regarding network interface naming
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
2020-02-01 04:47:09 +01:00
Michael Biebl
dcd337b646 Make it easier to override MAC based name policy for USB network adapters
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
2019-12-02 18:07:33 +01:00
Martin Pitt
240368eb28 udev README.Debian: Include initrd rebuild and some clarifications in migration
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
2018-03-18 16:19:07 +01:00
Martin Pitt
a9683ef10c udev README.Debian: Fix name of example *.link file 2017-07-14 08:21:36 +02:00
Martin Pitt
e54b571bb9 udev README.Debian: Update transitional rules and mention *.link files
- 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
2017-07-13 13:05:33 +02:00
Martin Pitt
b04c4add2b Disable 99-default.link instead of the udev rule for disabling persistent interface names
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
2016-11-15 08:53:06 +01:00
Martin Pitt
b72e3d3b27 Split out udev rule to name USB network interfaces by MAC address into 73-usb-net-by-mac.rules
With that it is easier to disable.

Closes: #824025
2016-05-11 22:48:37 +02:00
Martin Pitt
ff9a9d7268 debian/udev.README.Debian: Adjust documentation of MAC based naming for USB network cards to the udev rule
It was moved to an udev rule in 229-5 in commit efbe5b3e.
2016-04-28 11:58:40 +02:00
Martin Pitt
52a7387b9c debian/udev.README.Debian: Point out that any change to interface naming rules requires an initrd update 2016-01-09 16:19:37 +01:00
Martin Pitt
f90b82cb15 debian/udev.README.Debian: Fix previous instructions
It is not necessary to rebuild the initrd with the kernel command line
settings; instead, update-grub must be run.
2016-01-05 12:50:37 +01:00
Martin Pitt
957002fee1 debian/udev.README.Debian: Add alternative way of disabling ifnames, and point out that you must rebuild the initrd
Closes: #809339
2016-01-05 12:41:34 +01:00
Martin Pitt
ce90464a93 Drop net.agent, 80-networking.rules, and ifup@.service
These moved to ifupdown 0.8.5 now. Add Breaks: to earlier versions.
2016-01-02 10:03:56 +01:00
Martin Pitt
e3830d861b debian/udev.README.Debian: Fix typo and slight wording improvement
Closes: #809513
2015-12-31 17:14:25 +01:00
Michael Biebl
e05826cb0b Fix typo: persistant → persistent, thanks lintian 2015-06-18 15:36:21 +02:00
Martin Pitt
972bbc8e26 Switch to net.ifnames persistant network interfaces
Deprecate the old 75-persistent-net-generator.rules.

See the ML discussion for details:
     https://lists.debian.org/debian-devel/2015/05/msg00170.html
     https://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
2015-06-15 20:09:57 +02:00
Martin Pitt
291f0e840d debian/udev.README.Debian: Document net.ifnames, and how to write udev rules for custom network names 2015-06-04 12:13:03 +02:00
Martin Pitt
3a9dd4974d debian/udev.README.Debian updates
Move network interface hotplug documentation into separate section.

Point out that "lo" does not need to be configured in ifupdown under systemd.
2015-06-03 12:52:35 +02:00
Martin Pitt
f6443ba5f9 debian/udev.README.Debian: Trim the parts which are obsolete, wrong, or described in manpages
Only keep the Debian specific bits.

Part of #776546
2015-01-30 10:33:28 +01:00
Michael Biebl
b56f8637a1 Merge remaining files from udev 175-7
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
2013-07-18 18:57:39 +02:00