[Bug 1708166] Re: systemd/udev does not rename network interfaces specified in .link files

2017-08-04 Thread Wladimir Mutel
Hell, believe or not, I had read along man system.link several times, but I 
would wish to be able to understand all these little subtleties.
"All link files are collectively sorted and processed in lexical order, 
regardless of the directories in which they live. However, files with identical 
filenames replace each other. Files in /etc have the highest priority, files in 
/run take precedence over files with the same name in /usr/lib."
Go figure...

There are plenty of recipes on the Internet telling the reader to disable the 
damned "novelty"
https://askubuntu.com/questions/767786/changing-network-interfaces-name-ubuntu-16-04
https://serverfault.com/questions/837454/interface-will-not-rename-under-systemd
etc
https://www.google.com.ua/search?q=ubuntu+systemd+link+rename+interfaces

Most often, what is forgotten, is regeneration of initramfs file after .link 
changes
But also, sometimes numeric prefix of the .link file name is forgotten as well
So, this is not working, frustrating, infuriating the user and making him want 
to disable the damned thing altogether.

As for me, just now, I managed to guess that .links preventing renaming of VLAN 
interfaces should have earlier prefixes than ones binding known interface names 
to their MAC addresses (as VLAN iface has the same MAC)
This was a really hard-earned knowledge because there are no usable HOWTOs 
about these "novelties"
https://askubuntu.com/questions/791149/prevent-vlan-and-bridge-interface-rename-to-renamex-form
https://www.prolixium.com/blog?id=1023
https://www.google.com.ua/search?q=ubuntu+systemd+vlan+link+rename

So, with current system documentation, unless you don't have an existing
working sample for copying, you are doomed to guessworks, spitting and
cursing until you guess what to write where and how to name it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1708166

Title:
  systemd/udev does not rename network interfaces specified in .link
  files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1708166/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1708166] Re: systemd/udev does not rename network interfaces specified in .link files

2017-08-04 Thread Dimitri John Ledkov
If there are wrong documentation out there, please provide links such
that we could update it. (E.g. a popular question on askubuntu.com or
some such)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1708166

Title:
  systemd/udev does not rename network interfaces specified in .link
  files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1708166/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1708166] Re: systemd/udev does not rename network interfaces specified in .link files

2017-08-04 Thread Dimitri John Ledkov
Local: $ man systemd.link

Ubuntu any release: http://manpages.ubuntu.com/cgi-
bin/search.py?q=systemd.link

Upstream latest:
https://www.freedesktop.org/software/systemd/man/systemd.link.html

...
The first (in lexical order) of the link files that matches a given device is 
applied. Note that a default file 99-default.link is shipped by the system, any 
user-supplied .link should hence have a lexically earlier name to be considered 
at all.

In general all systemd commands and units are documented. E.g. $ man
systemd.service systemd.path systemd.link systemd.network and so on and
so worth should give you authoritative documentation about every little
detail.

** Changed in: systemd (Ubuntu)
   Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1708166

Title:
  systemd/udev does not rename network interfaces specified in .link
  files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1708166/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1708166] Re: systemd/udev does not rename network interfaces specified in .link files

2017-08-03 Thread Wladimir Mutel
steps 1) and 2) really helped me to make this work

now I am wondering where in the Ubuntu documentation I could find about
this ?

I see similar questions on the Internet, with most responses like
'revert to the old way of /etc/udev/rules.d/70-persistent-net.rules',
'disable net.ifnames', 'link /dev/null into /etc/udev/rules.d/80-net-
setup-link.rules', etc.

Only here on Launchpad I was able to get the proper and working response from 
you
How did you learn about doing this right ? :>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1708166

Title:
  systemd/udev does not rename network interfaces specified in .link
  files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1708166/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1708166] Re: systemd/udev does not rename network interfaces specified in .link files

2017-08-02 Thread Dimitri John Ledkov
Only the first link file will be applied and the rest will be ignored.

.link files are copied into the initramfs, as udev is started there.

Could you please try:

1) rename eth0.link to 00-eth0.link
2) update initramfs, e.g. $ sudo update-initramfs -u
3) reboot and check if you get expected behaviour.

If you still do not get the names you want, then please attach the
output of:

$ udevadm info -q all -p /sys/class/net/enp2s0

** Changed in: systemd (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1708166

Title:
  systemd/udev does not rename network interfaces specified in .link
  files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1708166/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs