-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ Upstream commit d22ad7c ] SUSE dracut does not support /etc/dracut.conf.d but /usr/lib/dracut/modules.d Replace redhat script by a simpler one that reuses the standard udev/systemd scripts Cc: [email protected] #v15 Signed-off-by: Nicolas Morey-Chaisemartin <[email protected]>
- Loading branch information
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
check() { | ||
[ -n "$hostonly" -a -c /sys/class/infiniband_verbs/uverbs0 ] && return 0 | ||
[ -n "$hostonly" ] && return 255 | ||
return 0 | ||
} | ||
|
||
depends() { | ||
return 0 | ||
} | ||
|
||
install() { | ||
inst /etc/rdma/mlx4.conf | ||
inst /etc/rdma/modules/infiniband.conf | ||
inst /etc/rdma/modules/iwarp.conf | ||
inst /etc/rdma/modules/opa.conf | ||
inst /etc/rdma/modules/rdma.conf | ||
inst /etc/rdma/modules/roce.conf | ||
inst /usr/lib/mlx4-setup.sh | ||
inst_multiple lspci setpci awk sleep | ||
inst_rules 70-persistent-ipoib.rules 75-rdma-description.rules 90-rdma-hw-modules.rules 90-rdma-ulp-modules.rules | ||
inst_multiple -o \ | ||
$systemdsystemunitdir/rdma-hw.target \ | ||
$systemdsystemunitdir/[email protected] | ||
} | ||
|
||
installkernel() { | ||
hostonly='' instmods =drivers/infiniband =drivers/net/ethernet/mellanox =drivers/net/ethernet/chelsio =drivers/net/ethernet/cisco =drivers/net/ethernet/emulex =drivers/target | ||
hostonly='' instmods crc-t10dif crct10dif_common | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters