X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=hooks%2Flive;h=309c26fb91f686122dd21b469f6789352c62c7d5;hb=8cd0e7a9e961e73abe47b0d5c11d3c3a9cbdf802;hp=b3de1e592dbb15c449bdbb52cdd2850c45dc5981;hpb=6666658535b255cb71d48ddeb415aeb3023e1251;p=live-boot-grml.git diff --git a/hooks/live b/hooks/live index b3de1e5..309c26f 100755 --- a/hooks/live +++ b/hooks/live @@ -252,23 +252,17 @@ then manual_add_modules crc32c fi -# DNS for initramfs -#copy_exec /lib/libnss_files.so.* /lib # /etc/hosts and /etc/passwd -# DNS server: -if ls /lib/libnss_dns.so.* >/dev/null 2>&1 ; then # non-multiarch libc - copy_exec /lib/libnss_dns.so.* /lib -elif ls /lib/*/libnss_dns.so.* >/dev/null 2>&1 ; then # multiarch libc - for libnss in /lib/*/libnss_dns.so.* ; do - copy_exec "$libnss" - done -else - echo "Warning: libnss_dns.so.* not found. DNS in initramfs not functional." +if [ "${LIVE_DNS}" = "true" ] +then + [ "${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_compat.so.* /lib # /etc/passwd + + # Configuration file - may be needed if /etc/hosts is used. + #mkdir -p $DESTDIR/etc + #cp -p /etc/nsswitch.conf $DESTDIR/etc fi -#copy_exec /lib/libnss_compat.so.* /lib # /etc/passwd - -# Configuration file - may be needed if /etc/hosts is used. -#mkdir -p $DESTDIR/etc -#cp -p /etc/nsswitch.conf $DESTDIR/etc if [ "${LIVE_UNIONMOUNT}" = "true" ] then