From d29d2bf683e606582193124e59c78f8c2feca875 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 28 Jan 2021 13:47:28 -0500 Subject: [PATCH] Implement workaround for install over infiniband 8.3 implemented networkmanager to manage the install time networking, but didn't correctly generate infiniband network manager configuration. Workaround by checking for infiniband install, and then checking if the configuration is wrong, and adding an infiniband section if missing. --- .../usr/lib/dracut/hooks/initqueue/01-confluent.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh index aa81e4f8..323bb52c 100644 --- a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh +++ b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh @@ -109,5 +109,13 @@ done < /etc/confluent/confluent.deploycfg if [ -e /lib/nm-lib.sh ]; then . /lib/nm-lib.sh nm_generate_connections + if [[ "$ifname" == ib* ]]; then + sed -i s/type=ethernet/type=infiniband/ /run/NetworkManager/system-connections/$ifname.nmconnection + if ! grep '\[infiniband\]' /run/NetworkManager/system-connections/$ifname.nmconnection > /dev/null; then + echo >> /run/NetworkManager/system-connections/$ifname.nmconnection + echo '[infiniband]' >> /run/NetworkManager/system-connections/$ifname.nmconnection + echo transport-mode=datagram >> /run/NetworkManager/system-connections/$ifname.nmconnection + fi + fi fi