[CentOS] udev rules & USB devices - ignored at boot

Mon Feb 8 15:03:35 UTC 2021
lejeczek <peljasz at yahoo.co.uk>


On 08/02/2021 08:10, Strahil Nikolov wrote:
> Can you share your udev rules ?
>
> Best Regards,
> Strahil Nikolov
>
>     On Sun, Feb 7, 2021 at 15:33, lejeczek via CentOS
>     <centos at centos.org> wrote:
>     Hi guys,
>
>     I have an Ethernet USB adapter for which udev executes my
>     custom rules but!... udev does it only at plug-in
>     event and
>     not! when the USB stays plugged in during a reboot, then
>     same rules are ignored (or some other problem results in
>     udev failure to do the same when device is plugged to a
>     running system).
>     My system is just an average box with a Ryzen on a B550
>     platform.
>     Anybody sees this reproduce?
>     many thanks, L.
>     _______________________________________________
>     CentOS mailing list
>     CentOS at centos.org <mailto:CentOS at centos.org>
>     https://lists.centos.org/mailman/listinfo/centos
>     <https://lists.centos.org/mailman/listinfo/centos>
>
simple rules:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:1e:10:1f:00:00", ATTR{type}=="1", 
KERNEL=="eth*", NAME="lteusb"

like I said - I get iface "lteusb" when I plug the USB so it 
works. If I leave that USB plugged in and reboot then no 
"lteusb".

regards, L.