File: 65-mellanox

package info (click to toggle)
python-diskimage-builder 3.37.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,572 kB
  • sloc: sh: 7,380; python: 6,444; makefile: 37
file content (21 lines) | stat: -rwxr-xr-x 542 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Ensure we load the mellanox driver somehow

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
    set -x
fi
set -eu
set -o pipefail

home=$(dirname $0)

install -m 0644 -o root -g root $home/mellanox-rules.udev /etc/udev/rules.d/81-mellanox.rules

# needed kernel modules; mlx4_en mlx4_ib ib_ipoib mlx5_ib ib_umad ib_uverbs
# mlx5_core loaded by mlx5_ib
echo "mlx4_en" >>/etc/modules
echo "mlx4_ib" >>/etc/modules
echo "ib_ipoib" >>/etc/modules
echo "mlx5_ib" >>/etc/modules
echo "ib_umad" >>/etc/modules
echo "ib_uverbs" >>/etc/modules