update our patches on top of Debian's 4.0~alpha19
[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 Index: live-boot-grml/backend/initramfs-tools/live.hook
10 ===================================================================
11 --- live-boot-grml.orig/backend/initramfs-tools/live.hook       2014-03-08 13:36:37.835196873 +0100
12 +++ live-boot-grml/backend/initramfs-tools/live.hook    2014-03-08 13:36:37.835196873 +0100
13 @@ -228,23 +228,19 @@
14  
15  # Some experimental stuff
16  
17 -case "${LIVE_DNS}" in
18 -       true)
19 -               [ "${QUIET}" ] || echo -n " dns"
20 -
21 -               # /lib/libnss_dns.so.*:a   DNS
22 -               # /lib/libnss_files.so.*:  /etc/hosts and /etc/passwd
23 -               # /lib/libnss_compat.so.*: /etc/passwd
24 -
25 -               for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
26 -               do
27 -                       copy_exec "${_SHLIB}"
28 -               done
29 -
30 -               # might be needed if /etc/hosts is used
31 -               #mkdir -p "${DESTDIR}/etc"
32 -               #cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
33 -               ;;
34 -esac
35 +[ "${QUIET}" ] || echo -n " dns"
36 +
37 +# /lib/libnss_dns.so.*:a   DNS
38 +# /lib/libnss_files.so.*:  /etc/hosts and /etc/passwd
39 +# /lib/libnss_compat.so.*: /etc/passwd
40 +
41 +for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
42 +do
43 +       copy_exec "${_SHLIB}"
44 +done
45 +
46 +# might be needed if /etc/hosts is used
47 +#mkdir -p "${DESTDIR}/etc"
48 +#cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
49  
50  [ "${QUIET}" ] || echo .