Skip to content

Commit

Permalink
Install xprtrdma/svcrdma kmods in redhat/suse dracut modules
Browse files Browse the repository at this point in the history
[ Upstream commit aa40d6d ]

The rdma dracut module installs udev rules that can cause
rdma-load-modules@rdma.service to load kernel modules listed in rdma.conf.
That file mentions the xprtrdma and svcrdma modules (both of which are
aliases for rpcrdma in kernel 5.18) but the dracut module doesn't install
them in the initrd.  If they're not installed by other means, this causes
warnings in the journal:

    systemd-modules-load[...]: Failed to find module 'xprtrdma'
    systemd-modules-load[...]: Failed to find module 'svcrdma'

Before systemd 244, it also causes rdma-load-modules@rdma.service to fail
entirely.

Fix by explicitly installing those modules in the initrd.

See also https://bugzilla.redhat.com/show_bug.cgi?id=2117375.

Fixes: 8bb38f6 ("redhat: update dracut setting")
Fixes: 7752410 ("suse: fix dracut support")
Signed-off-by: Benjamin Gilbert <bgilbert@redhat.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
bgilbert authored and nmorey committed Sep 5, 2022
1 parent bf87324 commit 4909d52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion redhat/rdma.modules-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ install() {

installkernel() {
hostonly='' instmods =drivers/infiniband =drivers/net/ethernet/mellanox =drivers/net/ethernet/chelsio =drivers/net/ethernet/cisco =drivers/net/ethernet/emulex =drivers/target
hostonly='' instmods crc-t10dif crct10dif_common
hostonly='' instmods crc-t10dif crct10dif_common xprtrdma svcrdma
}
2 changes: 1 addition & 1 deletion suse/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ install() {

installkernel() {
hostonly='' instmods =drivers/infiniband =drivers/net/ethernet/mellanox =drivers/net/ethernet/chelsio =drivers/net/ethernet/cisco =drivers/net/ethernet/emulex =drivers/target
hostonly='' instmods crc-t10dif crct10dif_common
hostonly='' instmods crc-t10dif crct10dif_common xprtrdma svcrdma
}

0 comments on commit 4909d52

Please sign in to comment.