Skip to content

Commit

Permalink
redhat: start rdma-load-modules@.service in initrd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cjubran committed Jul 2, 2024
1 parent ad1cba1 commit a4f71d9
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 a4f71d9

Please sign in to comment.