From 59835e592a96315dd586d939ad3dfa2a13bb2f9d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 28 Jan 2012 14:26:05 +0000 Subject: [PATCH] Since mlx4_en does not publish a list of pci ids to support, put udev rule to detect and load appropriate drivers git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11430 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot2/98-mlx.rules | 1 + xCAT-nbroot2/install | 2 ++ xCAT-nbroot2/loadmlxeth | 1 + 3 files changed, 4 insertions(+) create mode 100644 xCAT-nbroot2/98-mlx.rules create mode 100755 xCAT-nbroot2/loadmlxeth diff --git a/xCAT-nbroot2/98-mlx.rules b/xCAT-nbroot2/98-mlx.rules new file mode 100644 index 000000000..342e4cbe2 --- /dev/null +++ b/xCAT-nbroot2/98-mlx.rules @@ -0,0 +1 @@ +SUBSYSTEM=="pci", ATTRS{subsystem_vendor}=="15b3", ATTRS{subsystem_device}=="4010", RUN+="/sbin/loadmlxeth" diff --git a/xCAT-nbroot2/install b/xCAT-nbroot2/install index ae6db5000..6350ac3db 100755 --- a/xCAT-nbroot2/install +++ b/xCAT-nbroot2/install @@ -604,7 +604,9 @@ inst "$moddir/dhclient.conf" "/etc/dhclient.conf" inst "$moddir/dhclient-script" "/sbin/dhclient-script" inst "$moddir/rsyslog.conf" "/etc/rsyslog.conf" inst "$moddir/99-imm.rules" "/etc/udev/rules.d/99-imm.rules" +inst "$moddir/98-mlx.rules" "/etc/udev/rules.d/98-mlx.rules" inst "$moddir/setupimmnic" "/sbin/setupimmnic" +inst "$moddir/loadmlxeth" "/sbin/loadmlxeth" dracut_install /sbin/rpc.statd /usr/sbin/sm-notify /etc/netconfig rpcbind /etc/host.conf /usr/sbin/rpc.idmapd dracut_install ps free find #debug inst_dir /var/lib/nfs diff --git a/xCAT-nbroot2/loadmlxeth b/xCAT-nbroot2/loadmlxeth new file mode 100755 index 000000000..da3d003ce --- /dev/null +++ b/xCAT-nbroot2/loadmlxeth @@ -0,0 +1 @@ +modprobe mlx4_en