Skip to content

Commit

Permalink
Merge pull request #1481 from cjubran/rdma-in-initrd
Browse files Browse the repository at this point in the history
Ensure RDMA service loads modules in initrd
  • Loading branch information
rleon authored Jul 18, 2024
2 parents ec9fedc + 1a4ab42 commit f6ff7a3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel-boot/rdma-load-modules@.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Documentation=file:@CMAKE_INSTALL_FULL_DOCDIR@/udev.md
# systemd-modules-load.service
DefaultDependencies=no
Before=sysinit.target
# Kernel modules must load in initrd before initrd.target to avoid being killed
# when initrd-cleanup.service isolates to initrd-switch-root.target.
Before=initrd.target
# Do not execute concurrently with an ongoing shutdown
Conflicts=shutdown.target
Before=shutdown.target
Expand Down
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
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 f6ff7a3

Please sign in to comment.