]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(network-manager): always install the library plugins directory
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 29 Sep 2022 10:02:34 +0000 (12:02 +0200)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 22 Oct 2022 01:49:56 +0000 (21:49 -0400)
The library plugins directory is automatically added to the initrd if either
libnm-device-plugin-team.so or libnm-settings-plugin-ifcfg-rh.so are present on
the system, but both are optional libraries, and if it does not exist, the
NetworkManager issues a warning.

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

index c93c6a3c8c0e1577bc28535be38f503d55745c6d..c5d568f0bc2922a3fe41068355cc98448cc088a9 100755 (executable)
@@ -61,6 +61,7 @@ install() {
     inst_hook initqueue/settled 99 "$moddir/nm-run.sh"
 
     inst_rules 85-nm-unmanaged.rules
+    inst_libdir_dir "NetworkManager/$_nm_version"
     inst_libdir_file "NetworkManager/$_nm_version/libnm-device-plugin-team.so"
     inst_simple "$moddir/nm-lib.sh" "/lib/nm-lib.sh"