Skip to content

Commit 317a79c

Browse files
felixradenskyacoifmannvidia
authored andcommitted
hw-mgmt: rules: Fix usb0 interface rule to work with kernel 6.12
On kernel 6.12 usb0 interface is named usb0 from the beginning, unlike kernel 6.1, which creates it as ethX. For some reason the NAME==usb0 matching doesn't work on kernel 6.12. Update the renaming rule to force NAME=usb0 also on kernel 6.12, so that matching works as expected. Bug: 4834017 Signed-off-by: Felix Radensky <fradensky@nvidia.com>
1 parent 2344f1c commit 317a79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/lib/udev/rules.d/70-hw-management-bmc.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# These rules handle USB net up/down events.
3434

3535
# Rename interface from ethN to usb0
36-
SUBSYSTEM=="net", ACTION=="add", ATTRS{idVendor}=="0525", ATTRS{idProduct}=="a4a2", KERNEL=="eth*", NAME="usb0"
36+
SUBSYSTEM=="net", ACTION=="add", ATTRS{idVendor}=="0525", ATTRS{idProduct}=="a4a2", KERNEL=="eth*|usb*", NAME="usb0"
3737

3838
# Bring up the USB network interface when it is plugged in.
3939
SUBSYSTEM=="net", ACTION=="add", NAME=="usb0", RUN+="/usr/bin/hw-management-ifupdown.sh usb0 up"

0 commit comments

Comments
 (0)