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

Reply via email to