From 714a883d9cc2efcdc180c54d34014a93527872d6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 2 Dec 2021 17:00:10 -0500 Subject: [PATCH] Purge the conflucting default nmconnection if we have better --- .../coreos/initramfs/opt/confluent/bin/initconfluent.sh | 3 +++ 1 file changed, 3 insertions(+) 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