Commit 46dd3e0
committed
nvidia-peermem: Prefer ofa_kernel-dkms path for DOCA-OFED headers
Since DOCA 3.2.0, DKMS is the default OFED drivers' installation
method. These store the headers in /usr/src/ofa_kernel-dkms/ and
create symlinks from /usr/src/ofa_kernel/ for backward
compatibility.
Using the -dkms path directly is more robust as it contains the
actual files, avoiding potential issues with symlinks that may be
missing, broken, or not yet created during package installation.
Add ofa_kernel-dkms as the highest-priority candidate, drop the
/var/lib/dkms/mlnx-ofed-kernel/ fallback whose directory structure
never matched the expected layout, and replace the shell for-loop
with $(firstword $(wildcard ...)) to match the pattern used by
OFED's own DKMS submodules.
Signed-off-by: Leonid Bloch <lb.workbox@gmail.com>1 parent 66b184c commit 46dd3e0
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
55 | 49 | | |
56 | | - | |
| 50 | + | |
57 | 51 | | |
58 | 52 | | |
59 | 53 | | |
| |||
0 commit comments