udev rules in /etc/udev/rules.d/ ignored/not-loaded on boot; exec manually OK at shell ?

Lennart Poettering lennart at poettering.net
Fri Dec 22 09:05:18 UTC 2023


On Do, 21.12.23 08:18, pgnd (pgnd at dev-mail.net) wrote:

> i'm trying to set a systemd-networkd-managed ethernet interface's
> sysctls _after_ it's renamed on boot, with a udev rule.

networkd manages a large number of those sysctls itself, and has knobs
for them in .network files.

If you change the relevant sysctls both via sysctl.d and via networkd
then they will constantly step on each other's toes.

Hence, if you let networkd manage your interface then let networkd
manage your interface.

Moreover, there's already a udev rule in place to re-apply network
sysctls as those interfaces appear, no need to add one manually.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list