1 commit 10caf0b2db3fc04fae24ca896cf21f6aed12bbbc
2 Author: Christian Hofstaedtler <ch@grml.org>
3 Date: Fri Mar 25 23:02:38 2011 +0100
5 support DNS in boot environment
7 Thanks to Ulrich Dangel for discovering this. [Closes: issue848]
9 --- a/backends/initramfs-tools/live.hook
10 +++ b/backends/initramfs-tools/live.hook
11 @@ -217,24 +217,20 @@ fi
13 # Some experimental stuff
15 -case "${LIVE_DNS}" in
17 - [ "${QUIET}" ] || echo -n " dns"
18 +[ "${QUIET}" ] || echo -n " dns"
20 - # /lib/libnss_dns.so.*:a DNS
21 - # /lib/libnss_files.so.*: /etc/hosts and /etc/passwd
22 - # /lib/libnss_compat.so.*: /etc/passwd
23 +# /lib/libnss_dns.so.*:a DNS
24 +# /lib/libnss_files.so.*: /etc/hosts and /etc/passwd
25 +# /lib/libnss_compat.so.*: /etc/passwd
27 - for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
29 - copy_exec "${_SHLIB}"
31 +for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
33 + copy_exec "${_SHLIB}"
36 - # might be needed if /etc/hosts is used
37 - #mkdir -p "${DESTDIR}/etc"
38 - #cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
41 +# might be needed if /etc/hosts is used
42 +#mkdir -p "${DESTDIR}/etc"
43 +#cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
45 case "${LIVE_UNIONMOUNT}" in