Harald Hoyer 308914
From 87bffc36e72c121024df033e1a78799456c73523 Mon Sep 17 00:00:00 2001
Harald Hoyer 308914
From: Beniamino Galvani <bgalvani@redhat.com>
Harald Hoyer 308914
Date: Mon, 23 Mar 2020 22:57:35 +0100
Harald Hoyer 308914
Subject: [PATCH] network-manager: install libnss DNS and mDNS plugins
Harald Hoyer 308914
Harald Hoyer 308914
Install libnss_dns.so and libnss_mdns4_minimal.so plugins for the Name
Harald Hoyer 308914
Service Switch (NSS) functionality of glibc so that name resolution
Harald Hoyer 308914
through /etc/resolv.conf and mDNS works in the initrd.
Harald Hoyer 308914
Harald Hoyer 308914
Fixes: #772
Harald Hoyer 308914
---
Harald Hoyer 308914
 modules.d/35network-manager/module-setup.sh | 5 +++++
Harald Hoyer 308914
 1 file changed, 5 insertions(+)
Harald Hoyer 308914
Harald Hoyer 308914
diff --git a/modules.d/35network-manager/module-setup.sh b/modules.d/35network-manager/module-setup.sh
Harald Hoyer 308914
index d6d0f9ce..8fc3114d 100755
Harald Hoyer 308914
--- a/modules.d/35network-manager/module-setup.sh
Harald Hoyer 308914
+++ b/modules.d/35network-manager/module-setup.sh
Harald Hoyer 308914
@@ -51,4 +51,9 @@ install() {
Harald Hoyer 308914
     if ! [[ -d "$initdir/etc/sysconfig/network-scripts" ]]; then
Harald Hoyer 308914
         inst_libdir_file "NetworkManager/$_nm_version/libnm-settings-plugin-ifcfg-rh.so"
Harald Hoyer 308914
     fi
Harald Hoyer 308914
+
Harald Hoyer 308914
+    _arch=${DRACUT_ARCH:-$(uname -m)}
Harald Hoyer 308914
+
Harald Hoyer 308914
+    inst_libdir_file {"tls/$_arch/",tls/,"$_arch/",}"libnss_dns.so.*" \
Harald Hoyer 308914
+        {"tls/$_arch/",tls/,"$_arch/",}"libnss_mdns4_minimal.so.*"
Harald Hoyer 308914
 }
Harald Hoyer 308914