From f18a2823828fc1a0b9be1c3cfbdd1543e12402a1 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Wed, 12 Jun 2019 13:03:09 +0200 Subject: [PATCH] Also search for libnss_*.so files in /usr/lib The libnss_*.so were moved from /lib to /usr/lib and were not found any more (breaking resolving the FQDN with "hostname -f"). Therefore also search for libnss_*.so files in /usr/lib. Closes: #930419 Signed-off-by: Benjamin Drung --- backend/initramfs-tools/live.hook | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/initramfs-tools/live.hook b/backend/initramfs-tools/live.hook index 1817814..b37f54f 100755 --- a/backend/initramfs-tools/live.hook +++ b/backend/initramfs-tools/live.hook @@ -236,11 +236,11 @@ fi [ "${QUIET}" ] || echo -n " dns" -# /lib/libnss_dns.so.*:a DNS -# /lib/libnss_files.so.*: /etc/hosts and /etc/passwd -# /lib/libnss_compat.so.*: /etc/passwd +# libnss_dns.so.*: DNS +# libnss_files.so.*: /etc/hosts and /etc/passwd +# libnss_compat.so.*: /etc/passwd -for _SHLIB in $(find /lib -name 'libnss_dns.so.*' -o -name 'libnss_files.so.*') +for _SHLIB in $(find /lib /usr/lib -name 'libnss_dns.so.*' -o -name 'libnss_files.so.*') do copy_exec "${_SHLIB}" done -- 2.1.4