From e3e8b4184573835efdd1cbcceb4bc3dff972599a Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Thu, 23 Nov 2023 10:46:13 +0100 Subject: [PATCH] B -#: Workaround NM on cenots7 --- context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm b/context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm index 87f22e0d..f41f063c 100644 --- a/context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm +++ b/context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm @@ -38,6 +38,9 @@ configure_network() # address race condition on el8 # https://github.com/OpenNebula/addon-context-linux/issues/282 nmcli general reload + + # something weird is happening on centos7 + grep -qi 'centos linux release 7' /etc/redhat-release && systemctl restart NetworkManager } stop_network()