From: Evgeni Golov Date: Fri, 21 Aug 2015 11:22:37 +0000 (+0200) Subject: make copying libnss_dns.so.* unconditionally X-Git-Tag: debian/1%20160511~9^2~5 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=16ee41d56188d520b0808006cd08c505d7f4dc89 make copying libnss_dns.so.* unconditionally --- diff --git a/backend/initramfs-tools/live.hook b/backend/initramfs-tools/live.hook index fc3d6b4..ac2c0ce 100755 --- a/backend/initramfs-tools/live.hook +++ b/backend/initramfs-tools/live.hook @@ -215,23 +215,19 @@ fi # Some experimental stuff -case "${LIVE_DNS}" in - true) - [ "${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 - - for _SHLIB in $(find /lib -name 'libnss_dns.so.*') - do - copy_exec "${_SHLIB}" - done - - # might be needed if /etc/hosts is used - #mkdir -p "${DESTDIR}/etc" - #cp -p /etc/nsswitch.conf "${DESTDIR}/etc" - ;; -esac +[ "${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 + +for _SHLIB in $(find /lib -name 'libnss_dns.so.*') +do + copy_exec "${_SHLIB}" +done + +# might be needed if /etc/hosts is used +#mkdir -p "${DESTDIR}/etc" +#cp -p /etc/nsswitch.conf "${DESTDIR}/etc" [ "${QUIET}" ] || echo .