Open lorenz opened 2 years ago
In my case, it's /sys/class/net/vboxnet0
and not /sys/class/net/wg0
. It's been happening consistently for over a year.
The workaround in https://github.com/NixOS/nixpkgs/issues/195777#issuecomment-1324378856 fixes the lack of initialization. However, the value of USEC_INITIALIZED
is quite high, so it looks like the kernel thinks the device has been initialized all along.
Is there any fix, we can work towards, should we change the parameter USEC_INITIALIZED
?
The lack of USEC_INITIALIZED
is just indicative of an issue in udev. udev sets this parameter once it has initialized a device. But this is not happening here, at least for some devices after an udev restart.
So I take it we should open an issue upstream and discuss a solution with udev devs ?
Yeah, this is most likely an upstream issue. I put systemd.services.systemd-udevd.restartIfChanged = false;
which worked around the issue for me as not restarting udev means it doesn't need to reinitialize devices.
I've opened an issue upstream : https://github.com/systemd/systemd/issues/34585
Hopefully we can get to the bottom of this issue
Describe the bug
systemd-udev doesn't initialize all devices after a reload. This causes various follow-on issues like #180175.
Steps To Reproduce
Steps to reproduce the behavior:
sudo udevadm info /sys/class/net/wg0
The device is not initialized (note the lack of
USEC_INITIALIZED
):Expected behavior
Additional context
Probably an upstream bug triggered by NixOS because it likes to reload udev.
Notify maintainers
@flokli @kloenk @mic92
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.