Re: Proposal v2: enable stateless persistant network interface names

2015-06-25 Thread Marco d'Itri
On Jun 25, Martin Pitt wrote: > Unlike /dev nodes, network interfaces can't have aliases as far as I > know. Am I missing anything? No. As is usual with udev, the people who do not understand how it works are always ready to propose solutions. -- ciao, Marco pgpN9EvRdglqy.pgp Description: PG

Re: Proposal v2: enable stateless persistant network interface names

2015-06-25 Thread Martin Pitt
Hey Benjamin, Benjamin Drung [2015-06-25 12:44 +0200]: > How about adding a easy-to-type symlink for MAC named devices? Would > that work? Then users could refer to a device by the persistent MAC name > enx112233445566, but also could use a short name like eth2 (which might > not be persistent). >

Re: Proposal v2: enable stateless persistant network interface names

2015-06-25 Thread Benjamin Drung
Am Mittwoch, den 03.06.2015, 12:01 +0200 schrieb Martin Pitt: > The main objection in the discussion was that path based names aren't > appropriate for USB based devices. I agree, so I change my proposal to > use MAC based names for anything USB based. The names will look even > worse as they inclu

Re: Proposal v2: enable stateless persistant network interface names

2015-06-04 Thread Michael Biebl
Am 04.06.2015 um 10:10 schrieb Josselin Mouette: > How about using only the last 3 bytes of the MAC? > > The probability of using, on the same system, *two or more* controllers > from *different brands* with a collision in the last 3 bytes is > nonexistent in practice. > > The clear benefit would

Re: Proposal v2: enable stateless persistant network interface names

2015-06-04 Thread Josselin Mouette
Hi, Martin Pitt wrote: The main objection in the discussion was that path based names aren't appropriate for USB based devices. I agree, so I change my proposal to use MAC based names for anything USB based. The names will look even worse as they include the MAC i

Re: Proposal v2: enable stateless persistant network interface names

2015-06-03 Thread Vincent Danjean
Le 03/06/2015 12:01, Martin Pitt a écrit : > stretch+1 (or maybe +2): > - Check existance/non-emptiness of > /etc/udev/rules.d/70-persistent-net.rules in udev.preinst, > Show critical debconf note, and refuse to upgrade No. It is always a real pain when a preinst script fails. It is (ne

Re: Proposal v2: enable stateless persistant network interface names

2015-06-03 Thread Martin Pitt
Martin Pitt [2015-06-03 12:01 +0200]: > | $ cat /lib/systemd/network/01-mac-for-usb.link > | [Match] > | Path=*-usb-* > | > | [Link] > | NamePolicy=kernel database mac onboard slot path > | MACAddressPolicy=persistent Sorry, that was an old version. We want this: NamePolicy=kernel databas

Proposal v2: enable stateless persistant network interface names

2015-06-03 Thread Martin Pitt
Hello all, some 4 weeks ago I sent a first proposal to change persistent network interface naming away from our current /lib/udev/rules.d/75-persistent-net-generator.rules (which is inherently racy and doesn't apply to all virtualized environments) to udev's "net.ifnames": https://lists.debian.