-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux/efa: Fix module load issue on non-systemd based systems
Add a configuration file to pre-load ib_uverbs as a soft dependency module of efa kernel module on non-systemd based systems. Signed-off-by: Jie Zhang <[email protected]> Reviewed-by: Raghu Raja <[email protected]> Reviewed-by: Robert Wespetal <[email protected]> Reviewed-by: Yossi Leybovich <[email protected]> Signed-off-by: Gal Pressman <[email protected]>
- Loading branch information
1 parent
11edb99
commit 6ed742f
Showing
6 changed files
with
18 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
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
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,3 @@ | ||
# Copyright 2019 Amazon.com, Inc. or its affiliates. All rights reserved | ||
|
||
softdep efa pre: ib_uverbs |
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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Copyright 2019 Amazon.com, Inc. or its affiliates. All rights reserved | ||
|
||
%define name efa | ||
%define debug_package %{nil} | ||
|
||
|
@@ -37,6 +39,7 @@ dkms remove -m %{name} -v %{driver_version} --all | |
cd kernel/linux/efa | ||
mkdir -p %{buildroot}%{install_path} | ||
install -D -m 644 conf/efa.conf %{buildroot}/etc/modules-load.d/efa.conf | ||
install -D -m 644 conf/efa-modprobe.conf %{buildroot}/etc/modprobe.d/efa.conf | ||
install -m 644 conf/dkms.conf %{buildroot}%{install_path} | ||
install -m 644 efa_com.c %{buildroot}%{install_path} | ||
install -m 644 efa_com_cmd.c %{buildroot}%{install_path} | ||
|
@@ -60,8 +63,13 @@ install -m 644 RELEASENOTES.md %{buildroot}%{install_path} | |
%files | ||
%{install_path} | ||
/etc/modules-load.d/efa.conf | ||
/etc/modprobe.d/efa.conf | ||
|
||
%changelog | ||
* Tue May 7 2019 Jie Zhang <[email protected]> - 0.9.2 | ||
- Add a separate configuration file to load ib_uverbs as a soft dependency module | ||
on non-systemd based systems | ||
|
||
* Tue Apr 2 2019 Robert Wespetal <[email protected]> - 0.9.1 | ||
- Update EFA post install script to install module for all kernels | ||
|
||
|