diskimage-builder/elements/mellanox/install.d/65-mellanox
Chris Jones 8c17a5d040 Fix mellanox module loading.
My previous attempt at forcing the mellanox module to load was
completely bogus. This should not be (although I lack hardware to be
100% sure).

Change-Id: I22ff88181c9c9f0c024e021eeb7f16d79715241a
Closes-Bug: #1233949
2013-10-04 09:53:03 +01:00

10 lines
210 B
Bash
Executable File

#!/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
echo "mlx4_en" >>/etc/modules