Udev is hard to debug. – The virgin environment during system boot always deviates at least a little from the environment during a later re-run.
Thus, I’m trying to write udev-rules with the understanding of udev instead of trial-and-error.
One big problem is: Which udev-attributes are available during hot-/cold-plug?
The confusion comes from these two commands:
udevadm test /sys/class/net/wlx801f024ddc32
udevadm info --attribute-walk --path=/sys/class/net/wlx801f024ddc32
Both, for example, list SUBSYSTEM, which I know is available for udev-rules. But only the former has DEVTYPE (at least for wlan devices), while only the latter has KERNEL.
I actually need DEVTYPE (being “wlan”) during boot, but it seems not available when the rules kick in...