libera/#eudev/ Friday, 2023-05-12

lechnerHi, I use eudev as part of GNU Guix. What's the easiest way I may switch to MAC based device names (ID_NET_NAME_MAC) for all my devices, please?22:46
lechnerMy background is that GNU Guix is a declarative operating system. One of my devices will not boot when I add an unrelated PCI card (an SAS disk controller).Thanks!22:51
ArsenSUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="01:23:45:67:89:ab", NAME="something", but you could also match that ID_NET_NAME_MAC is nonempty and assign NAME to that22:54
Arsenhmm22:54
Arsenseems that I lost my sentence22:54
ArsenI'd just do something like SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="01:23:45:67:89:ab", NAME="something", but you could also match that ID_NET_NAME_MAC is nonempty and assign NAME to that if you insist on using MAC-based naming22:54
lechnerArsen / thanks! how about something like this?     https://paste.debian.net/1280107/22:56
Arsenwould likely work if that happens early enough not to have the name already set by some other rules22:56
lechneri modified something called 80-net-name-slot.rules here. what if i name my file 01-net-name-mac.rules?22:58
ArsenI *think* that works, try it22:58

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!