diskimage-builder/elements/mellanox/install.d/65-mellanox
Chris Jones dbe715e97b 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
2013-05-08 11:07:12 +01:00

10 lines
266 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
install -m 0644 -o root -g root $home/mellanox.modprobe /etc/modprobe.d/mellanox.conf