mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
udev/rules: add by-path and by-ibdev links to infiniband verbs
The uverbs devices are sequentially numbered and are not guarranteed to stay stable across reboot. At least one good person was disappointed by this, because they couldn't find their device: https://bugzilla.redhat.com/show_bug.cgi?id=2036515 Let's add a few helpful links.
This commit is contained in:
parent
aaf4325954
commit
73bf6859cb
12
rules.d/60-infiniband.rules
Normal file
12
rules.d/60-infiniband.rules
Normal file
@ -0,0 +1,12 @@
|
||||
# do not edit this file, it will be overwritten on update
|
||||
|
||||
ACTION=="remove", GOTO="infiniband_end"
|
||||
SUBSYSTEM!="infiniband_verbs", GOTO="infiniband_end"
|
||||
KERNEL!="uverbs*", GOTO="infiniband_end"
|
||||
|
||||
IMPORT{builtin}="path_id"
|
||||
|
||||
ENV{ID_PATH}=="?*", SYMLINK+="infiniband/by-path/$env{ID_PATH}"
|
||||
ATTR{ibdev}=="?*", SYMLINK+="infiniband/by-ibdev/uverbs-$attr{ibdev}"
|
||||
|
||||
LABEL="infiniband_end"
|
Loading…
Reference in New Issue
Block a user