Merge "Extend mellanox support to disk images."

This commit is contained in:
Jenkins 2013-05-08 19:54:15 +00:00 committed by Gerrit Code Review
commit fe36ab5554
3 changed files with 18 additions and 0 deletions

View 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

View File

@ -0,0 +1,6 @@
ACTION!="add", GOTO="drivers_end"
SUBSYSTEM=="net", RUN+="/sbin/modprobe mlx4_en"
LABEL="drivers_end"

View File

@ -0,0 +1,3 @@
# /etc/modprobe.d/mellanox.conf
# Attempt to force the mellanox driver to be loaded
/sbin/modprobe mlx4_en