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

2021-02-11 Thread lejeczek via CentOS



On 09/02/2021 18:25, Strahil Nikolov wrote:
CentOS 7 doesn't use the old naming convention but ,if you 
set a device name and mac address for your connection, the 
network stack will rename the device during activation.


Try with:

SUBSYSTEM=="net", ACTION=="add|change", DRIVERS=="?*",
ATTR{address}=="00:1e:10:1f:00:00", ATTR{type}=="1", 
pop NAME="lteusb"
dnf pulled in quite a few updates in the meanwhile but most 
likely "change" does the trick.
I thought it had something to do with USB/kernel/subsystems 
parts as the very same rules worked for PCIe devices, those 
worked at re/boot.

many! thanks Strahil.



Best Regards,
Strahil Nikolov

On Mon, Feb 8, 2021 at 17:04, lejeczek via CentOS
 wrote:


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
>    mailto:centos@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@centos.org 
>
> 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.

___
CentOS mailing list
CentOS@centos.org 
https://lists.centos.org/mailman/listinfo/centos




___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-02-08 Thread lejeczek via CentOS




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
 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@centos.org 
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.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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

2021-02-07 Thread lejeczek via CentOS

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@centos.org
https://lists.centos.org/mailman/listinfo/centos