33c11e1e9c
Currently, NetworkManager can't automatically create default connection profiles for InfiniBand interfaces. So, as a workaround, we are adding nm-dhcp-ib-interfaces element to install NetworkManager-system-connections-infiniband.nmconnection to NetworkManager to create a wildcard InfiniBand connection profile. The content of NetworkManager-system-connections-infiniband.nmconnection is generated by running this command: `nmcli --offline connection add type infiniband connection.multi-connect multiple` Closes-Bug: #2016965 Change-Id: Ic972b90e4df9c4aa36cfe3c8631db3e4533045f4
17 lines
552 B
Bash
Executable File
17 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
SCRIPTDIR=$(dirname $0)
|
|
|
|
# Because NetworkManager can't automatically create default connection
|
|
# profiles for InfiniBand interfaces, we are installing
|
|
# NetworkManager-system-connections-infiniband.nmconnection to
|
|
# NetworkManager to create a wildcard InfiniBand connection profile
|
|
install -D -g root -o root -m 0600 ${SCRIPTDIR}/NetworkManager-system-connections-infiniband.nmconnection /etc/NetworkManager/system-connections/infiniband.nmconnection
|
|
exit 0
|