X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=hooks%2Flive;h=309c26fb91f686122dd21b469f6789352c62c7d5;hb=ec72422e74e8e863cf8962ef1fe530180ed21afa;hp=3862a60234087069eeaf4465d4cd73e0ee08ccca;hpb=bbf81d50d3e3dba423dd3748c17727f60c874d31;p=live-boot-grml.git diff --git a/hooks/live b/hooks/live index 3862a60..309c26f 100755 --- a/hooks/live +++ b/hooks/live @@ -252,14 +252,17 @@ then manual_add_modules crc32c fi -# DNS for initramfs -#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 +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 if [ "${LIVE_UNIONMOUNT}" = "true" ] then