]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Always pull in machinery to read ifcfg files
authorPeter Georg <peter.georg@physik.uni-regensburg.de>
Tue, 21 Apr 2020 19:34:38 +0000 (21:34 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 21 Apr 2020 20:27:11 +0000 (22:27 +0200)
So far machinery is only pulled in if the user has not yet included any
ifcfg files.

modules.d/35network-manager/module-setup.sh

index 8fc3114dec014cf16acd9a76439a1ada0e7df745..ad2a1534d4a26157c804e50194ded0e2324ad1cf 100755 (executable)
@@ -47,10 +47,8 @@ install() {
     fi
 
     # We don't install the ifcfg files from the host automatically.
-    # But if the user chooses to include them, we pull in the machinery to read them.
-    if ! [[ -d "$initdir/etc/sysconfig/network-scripts" ]]; then
-        inst_libdir_file "NetworkManager/$_nm_version/libnm-settings-plugin-ifcfg-rh.so"
-    fi
+    # But the user might choose to include them, so we pull in the machinery to read them.
+    inst_libdir_file "NetworkManager/$_nm_version/libnm-settings-plugin-ifcfg-rh.so"
 
     _arch=${DRACUT_ARCH:-$(uname -m)}