]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network-manager: install libnss DNS and mDNS plugins
authorBeniamino Galvani <bgalvani@redhat.com>
Mon, 23 Mar 2020 21:57:35 +0000 (22:57 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 20 Apr 2020 14:47:56 +0000 (16:47 +0200)
Install libnss_dns.so and libnss_mdns4_minimal.so plugins for the Name
Service Switch (NSS) functionality of glibc so that name resolution
through /etc/resolv.conf and mDNS works in the initrd.

Fixes: #772
modules.d/35network-manager/module-setup.sh

index d6d0f9ce3dd596fe131c3fdd2e3a01d7f6670299..8fc3114dec014cf16acd9a76439a1ada0e7df745 100755 (executable)
@@ -51,4 +51,9 @@ install() {
     if ! [[ -d "$initdir/etc/sysconfig/network-scripts" ]]; then
         inst_libdir_file "NetworkManager/$_nm_version/libnm-settings-plugin-ifcfg-rh.so"
     fi
+
+    _arch=${DRACUT_ARCH:-$(uname -m)}
+
+    inst_libdir_file {"tls/$_arch/",tls/,"$_arch/",}"libnss_dns.so.*" \
+        {"tls/$_arch/",tls/,"$_arch/",}"libnss_mdns4_minimal.so.*"
 }