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