restore support for old persistence media
[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/backend/initramfs-tools/live.hook
10 +++ b/backend/initramfs-tools/live.hook
11 @@ -228,23 +228,26 @@
12  
13  # Some experimental stuff
14  
15 -case "${LIVE_DNS}" in
16 -       true)
17 -               [ "${QUIET}" ] || echo -n " dns"
18 -
19 -               # /lib/libnss_dns.so.*:a   DNS
20 -               # /lib/libnss_files.so.*:  /etc/hosts and /etc/passwd
21 -               # /lib/libnss_compat.so.*: /etc/passwd
22 -
23 -               for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
24 -               do
25 -                       copy_exec "${_SHLIB}"
26 -               done
27 -
28 -               # might be needed if /etc/hosts is used
29 -               #mkdir -p "${DESTDIR}/etc"
30 -               #cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
31 -               ;;
32 -esac
33 +[ "${QUIET}" ] || echo -n " dns"
34 +
35 +# /lib/libnss_dns.so.*:a   DNS
36 +# /lib/libnss_files.so.*:  /etc/hosts and /etc/passwd
37 +# /lib/libnss_compat.so.*: /etc/passwd
38 +
39 +for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
40 +do
41 +       copy_exec "${_SHLIB}"
42 +done
43 +
44 +# might be needed if /etc/hosts is used
45 +#mkdir -p "${DESTDIR}/etc"
46 +#cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
47 +
48 +# vlan support
49 +if [ -x /sbin/vconfig ]
50 +then
51 +       copy_exec /sbin/vconfig
52 +       manual_add_modules 8021q
53 +fi
54  
55  [ "${QUIET}" ] || echo .