Extend mellanox support to disk images.
We need to support mellanox devices in disk images as well as ramdisks. This adds the requisite element structure to provide that support. Change-Id: Iaf383f5b32b84fbb69569ef42ec2460ab1b231e5
This commit is contained in:
parent
7893e23435
commit
dbe715e97b
9
elements/mellanox/install.d/65-mellanox
Executable file
9
elements/mellanox/install.d/65-mellanox
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# Ensure we load the mellanox driver somehow
|
||||
|
||||
set -e
|
||||
|
||||
home=$(dirname $0)
|
||||
|
||||
install -m 0644 -o root -g root $home/mellanox-rules.udev /etc/udev/rules.d/81-mellanox.rules
|
||||
install -m 0644 -o root -g root $home/mellanox.modprobe /etc/modprobe.d/mellanox.conf
|
6
elements/mellanox/install.d/mellanox-rules.udev
Normal file
6
elements/mellanox/install.d/mellanox-rules.udev
Normal file
@ -0,0 +1,6 @@
|
||||
ACTION!="add", GOTO="drivers_end"
|
||||
|
||||
SUBSYSTEM=="net", RUN+="/sbin/modprobe mlx4_en"
|
||||
|
||||
LABEL="drivers_end"
|
||||
|
3
elements/mellanox/install.d/mellanox.modprobe
Normal file
3
elements/mellanox/install.d/mellanox.modprobe
Normal file
@ -0,0 +1,3 @@
|
||||
# /etc/modprobe.d/mellanox.conf
|
||||
# Attempt to force the mellanox driver to be loaded
|
||||
/sbin/modprobe mlx4_en
|
Loading…
Reference in New Issue
Block a user