|
|
dd662c |
From 1ade0d247fda747ed33632a7746f9278b74feaa8 Mon Sep 17 00:00:00 2001
|
|
|
dd662c |
From: Beniamino Galvani <bgalvani@redhat.com>
|
|
|
dd662c |
Date: Mon, 23 Mar 2020 22:57:35 +0100
|
|
|
dd662c |
Subject: [PATCH] network-manager: install libnss DNS and mDNS plugins
|
|
|
dd662c |
|
|
|
dd662c |
Install libnss_dns.so and libnss_mdns4_minimal.so plugins for the Name
|
|
|
dd662c |
Service Switch (NSS) functionality of glibc so that name resolution
|
|
|
dd662c |
through /etc/resolv.conf and mDNS works in the initrd.
|
|
|
dd662c |
|
|
|
dd662c |
Fixes: #772
|
|
|
dd662c |
|
|
|
dd662c |
Cherry-picked from: 87bffc36e72c121024df033e1a78799456c73523
|
|
|
dd662c |
Resolves: #1826061
|
|
|
dd662c |
---
|
|
|
dd662c |
modules.d/35network-manager/module-setup.sh | 5 +++++
|
|
|
dd662c |
1 file changed, 5 insertions(+)
|
|
|
dd662c |
|
|
|
dd662c |
diff --git a/modules.d/35network-manager/module-setup.sh b/modules.d/35network-manager/module-setup.sh
|
|
|
dd662c |
index d6d0f9ce..8fc3114d 100755
|
|
|
dd662c |
--- a/modules.d/35network-manager/module-setup.sh
|
|
|
dd662c |
+++ b/modules.d/35network-manager/module-setup.sh
|
|
|
dd662c |
@@ -51,4 +51,9 @@ install() {
|
|
|
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 |
+
|
|
|
dd662c |
+ _arch=${DRACUT_ARCH:-$(uname -m)}
|
|
|
dd662c |
+
|
|
|
dd662c |
+ inst_libdir_file {"tls/$_arch/",tls/,"$_arch/",}"libnss_dns.so.*" \
|
|
|
dd662c |
+ {"tls/$_arch/",tls/,"$_arch/",}"libnss_mdns4_minimal.so.*"
|
|
|
dd662c |
}
|
|
|
dd662c |
|