b4b3cb5f3ec5dd8bc865159483e2617ab9ab5124
[live-boot-grml.git] / debian / patches / 29_support_dns_in_initramfs.patch
1 commit 10caf0b2db3fc04fae24ca896cf21f6aed12bbbc
2 Author: Christian Hofstaedtler <ch@grml.org>
3 Date:   Fri Mar 25 23:02:38 2011 +0100
4
5     support DNS in boot environment
6     
7     Thanks to Ulrich Dangel for discovering this. [Closes: issue848]
8
9 --- a/backends/initramfs-tools/live.hook
10 +++ b/backends/initramfs-tools/live.hook
11 @@ -223,24 +223,20 @@
12  
13  # Some experimental stuff
14  
15 -case "${LIVE_DNS}" in
16 -       true)
17 -               [ "${QUIET}" ] || echo -n " dns"
18 +[ "${QUIET}" ] || echo -n " dns"
19  
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 -
24 -               for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
25 -               do
26 -                       copy_exec "${_SHLIB}"
27 -               done
28 -
29 -               # might be needed if /etc/hosts is used
30 -               #mkdir -p "${DESTDIR}/etc"
31 -               #cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
32 -               ;;
33 -esac
34 +# /lib/libnss_dns.so.*:a   DNS
35 +# /lib/libnss_files.so.*:  /etc/hosts and /etc/passwd
36 +# /lib/libnss_compat.so.*: /etc/passwd
37 +
38 +for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
39 +do
40 +       copy_exec "${_SHLIB}"
41 +done
42 +
43 +# might be needed if /etc/hosts is used
44 +#mkdir -p "${DESTDIR}/etc"
45 +#cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
46  
47  case "${LIVE_UNIONMOUNT}" in
48         true)