is udev responsible for linking the system with the hardware?
in this case, why does renaming not take place at the very first level ?
which would make new name available for all other levels...
hardware detected (plugged or in place) :
~> udev :
~> rename with defined rule (or not) :
~> systemd etc... (with new name available)
thanks for sysctl tip :-)
2017-05-19 1:52 GMT+02:00 Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl>:
> On Thu, May 18, 2017 at 11:51:25PM +0200, Pascal wrote:
> > hi,
> > I rename my network cards (with udev rule or systemd .link file) in order
> > to use their new name everywhere else: sysctl, systemd-networkd, samba,
> > iptables, etc ...
> > unfortunately, sysctl and systemd-networkd are started before the name
> > change and the defined configurations are not applied to my cards :-(
> > is there a way to start the name change before the rest ? it would even
> > seem more "logical"...
> That's not possible. Network cards can appear at any time: usb cards
> can be detected slowly, and hardware can be plugged in at any time, etc.
> > actualy, I must restart systemd-networkd service and replay sysctl :-(
> sysctl settings for a network interface can be applied after the
> interface is detected, see 99-systemd.rules.
systemd-devel mailing list