diff --git a/confluent_osdeploy/coreos/initramfs/opt/confluent/bin/initconfluent.sh b/confluent_osdeploy/coreos/initramfs/opt/confluent/bin/initconfluent.sh index 1b43c9d5..0325342d 100755 --- a/confluent_osdeploy/coreos/initramfs/opt/confluent/bin/initconfluent.sh +++ b/confluent_osdeploy/coreos/initramfs/opt/confluent/bin/initconfluent.sh @@ -92,6 +92,9 @@ if [ -e /lib/nm-lib.sh ]; then . /lib/nm-lib.sh nm_generate_connections sed -i 's/method=disabled/method=link-local/' /run/NetworkManager/system-connections/*.nmconnection + if [ -f /run/NetworkManager/system-connections/$ifname.nmconnection ]; then + rm /run/NetworkManager/system-connections/default_connection.nmconnection + fi 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