dd662c
From 0945c8070e436eef908a1f88c946df6c27d3bc41 Mon Sep 17 00:00:00 2001
dd662c
From: Peter Georg <peter.georg@physik.uni-regensburg.de>
dd662c
Date: Tue, 21 Apr 2020 21:34:38 +0200
dd662c
Subject: [PATCH] Always pull in machinery to read ifcfg files
dd662c
dd662c
So far machinery is only pulled in if the user has not yet included any
dd662c
ifcfg files.
dd662c
dd662c
(cherry picked from commit faea4e4ddb10f697590b80f8f17181341c537262)
dd662c
dd662c
Resolves: #1826061
dd662c
---
dd662c
 modules.d/35network-manager/module-setup.sh | 6 ++----
dd662c
 1 file changed, 2 insertions(+), 4 deletions(-)
dd662c
dd662c
diff --git a/modules.d/35network-manager/module-setup.sh b/modules.d/35network-manager/module-setup.sh
dd662c
index 8fc3114d..ad2a1534 100755
dd662c
--- a/modules.d/35network-manager/module-setup.sh
dd662c
+++ b/modules.d/35network-manager/module-setup.sh
dd662c
@@ -47,10 +47,8 @@ install() {
dd662c
     fi
dd662c
 
dd662c
     # We don't install the ifcfg files from the host automatically.
dd662c
-    # But if the user chooses to include them, we pull in the machinery to read them.
dd662c
-    if ! [[ -d "$initdir/etc/sysconfig/network-scripts" ]]; then
dd662c
-        inst_libdir_file "NetworkManager/$_nm_version/libnm-settings-plugin-ifcfg-rh.so"
dd662c
-    fi
dd662c
+    # But the user might choose to include them, so we pull in the machinery to read them.
dd662c
+    inst_libdir_file "NetworkManager/$_nm_version/libnm-settings-plugin-ifcfg-rh.so"
dd662c
 
dd662c
     _arch=${DRACUT_ARCH:-$(uname -m)}
dd662c
 
6df2a7