From: Christian Hofstaedtler Date: Fri, 25 Mar 2011 22:02:38 +0000 (+0100) Subject: support DNS in boot environment X-Git-Tag: v3.0_a17-1+grml.00~11 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=10caf0b2db3fc04fae24ca896cf21f6aed12bbbc;hp=8ff045c08e9fc6b5665b42eb7e38f8dd2e6dea37;p=live-boot-grml.git support DNS in boot environment Thanks to Ulrich Dangel for discovering this. [Closes: issue848] --- diff --git a/hooks/live b/hooks/live index 309c26f..3862a60 100755 --- a/hooks/live +++ b/hooks/live @@ -252,17 +252,14 @@ then manual_add_modules crc32c fi -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 +# 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_UNIONMOUNT}" = "true" ] then