Re: udev rules & USB devices - ignored at boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





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

    _______________________________________________
    CentOS mailing list
    CentOS@xxxxxxxxxx <mailto:CentOS@xxxxxxxxxx>
    https://lists.centos.org/mailman/listinfo/centos
    <https://lists.centos.org/mailman/listinfo/centos>


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




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux