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 Index: live-boot-grml/backends/initramfs-tools/live.hook
10 ===================================================================
11 --- live-boot-grml.orig/backends/initramfs-tools/live.hook 2012-12-17 21:01:56.339847815 +0100
12 +++ live-boot-grml/backends/initramfs-tools/live.hook 2012-12-17 21:02:16.468142747 +0100
15 # Some experimental stuff
17 -case "${LIVE_DNS}" in
19 - [ "${QUIET}" ] || echo -n " dns"
21 - # /lib/libnss_dns.so.*:a DNS
22 - # /lib/libnss_files.so.*: /etc/hosts and /etc/passwd
23 - # /lib/libnss_compat.so.*: /etc/passwd
25 - for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
27 - copy_exec "${_SHLIB}"
30 - # might be needed if /etc/hosts is used
31 - #mkdir -p "${DESTDIR}/etc"
32 - #cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
35 +[ "${QUIET}" ] || echo -n " dns"
37 +# /lib/libnss_dns.so.*:a DNS
38 +# /lib/libnss_files.so.*: /etc/hosts and /etc/passwd
39 +# /lib/libnss_compat.so.*: /etc/passwd
41 +for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
43 + copy_exec "${_SHLIB}"
46 +# might be needed if /etc/hosts is used
47 +#mkdir -p "${DESTDIR}/etc"
48 +#cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
50 [ "${QUIET}" ] || echo .