All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit a3f047b3 authored by Kirk Webb's avatar Kirk Webb

Add Ubuntu Upstart job for loading Mellanox eth and ib modules.

Also loads a couple of Infiniband modules so that Infiniband tools work
parent 48043e6e
......@@ -97,6 +97,7 @@ sysetc-fixup:
$(INSTALL) -m 644 $(SRCDIR)/rsyslog-emulab.conf $(SYSETCDIR)/rsyslog.d/60-emulab.conf
$(INSTALL) -m 755 $(SRCDIR)/rc.local $(SYSETCDIR)/rc.local
$(INSTALL) -m 644 $(SRCDIR)/interfaces $(SYSETCDIR)/network/interfaces
$(INSTALL) -m 644 $(SRCDIR)/mlx4-load.conf $(SYSETCDIR)/init/mlx4-load.conf
script-install: dir-install $(SCRIPTS)
(cd ../linux; $(MAKE) DESTDIR=$(DESTDIR) RCDIR=$(RCDIR) script-install)
# mlx4-load - Instert the Mellanox ConnectX-3 ethernet and IB drivers, as
# needed.
description "Mellanox ConnectX-3 Eth/IB module loader"
start on filesystem or runlevel [2345]
console log
umask 022
env MODLIST="mlx4_en mlx4_ib ib_umad ib_uverbs ib_ipoib ib_srp"
pre-start script
lsmod | grep -q mlx4_core || { stop; exit 1; }
end script
for mod in $MODLIST; do
/sbin/modprobe $mod
end script
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment