Skip to content

Commit

Permalink
redhat: start rdma-load-modules@.service in initrd
Browse files Browse the repository at this point in the history
[ Upstream commit a4f71d9 ]

Ensure that the rdma-load-modules@.service is started as part of the
initrd.

Fixes: 39fa824 ("redhat: add udev/systemd/etc infrastructure bits")
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
cjubran authored and nmorey committed Aug 12, 2024
1 parent 7becc50 commit 384c6ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions redhat/rdma.modules-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ install() {
inst_multiple -o \
$systemdsystemunitdir/rdma-hw.target \
$systemdsystemunitdir/rdma-load-modules@.service

for i in \
rdma-load-modules@rdma.service \
rdma-load-modules@roce.service \
rdma-load-modules@infiniband.service; do
$SYSTEMCTL -q --root "$initdir" add-wants initrd.target "$i"
done
}

installkernel() {
Expand Down

0 comments on commit 384c6ed

Please sign in to comment.