Skip to content

Commit

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

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

Fixes: 7752410 ("suse: fix dracut support")
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 0de4796 commit 2ba49f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions suse/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,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 2ba49f1

Please sign in to comment.