diff --git a/modules.d/35network-manager/nm-lib.sh b/modules.d/35network-manager/nm-lib.sh index 2d27e07957..1f749587ad 100644 --- a/modules.d/35network-manager/nm-lib.sh +++ b/modules.d/35network-manager/nm-lib.sh @@ -28,3 +28,7 @@ nm_generate_connections() { done fi } + +nm_reload_connections() { + [ -n "$DRACUT_SYSTEMD" ] && systemctl is-active nm-initrd.service && nmcli connection reload +} diff --git a/modules.d/80cms/cmsifup.sh b/modules.d/80cms/cmsifup.sh index 73d76fbf29..285e20d121 100755 --- a/modules.d/80cms/cmsifup.sh +++ b/modules.d/80cms/cmsifup.sh @@ -37,6 +37,7 @@ echo "$IFACES" >> /tmp/net.ifaces if [ -x /usr/libexec/nm-initrd-generator ] || [ -x /usr/lib/nm-initrd-generator ]; then type nm_generate_connections > /dev/null 2>&1 || . /lib/nm-lib.sh nm_generate_connections + nm_reload_connections else exec ifup "$DEVICE" fi