[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] libnss_dns.so.* in multiarch

Attached please find the patch for libnss_dns.so.* in multiarch.
Since now in Debian Sid, the path for libnss_dns.so.* are, for example,
for amd64 or i386 arch, respectively.
I believe there is a better patch for this.
My 2 cents.

BTW, how to enable LIVE_DNS? I could not find that in the manual of


Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A

--- a/backends/initramfs-tools/live.hook
+++ b/backends/initramfs-tools/live.hook
@@ -226,7 +226,13 @@
 		[ "${QUIET}" ] || echo -n " dns"
 		#copy_exec /lib/libnss_files.so.*      /lib  # /etc/hosts and /etc/passwd
-		copy_exec /lib/libnss_dns.so.*      /lib  # DNS server
+		#copy_exec /lib/libnss_dns.so.*      /lib  # DNS server
+		idns="$(find /lib -name "libnss_dns.so*" -print)"
+		for i in $idns; do
+			ipath="$(dirname $i)"
+			mkdir -p ${DESTDIR}/$ipath
+			copy_exec $i      $ipath # DNS server
+		done
 		#copy_exec /lib/libnss_compat.so.*      /lib  # /etc/passwd
 		# Configuration file - may be needed if /etc/hosts is used.

Reply to: