e5414fd6410fb9079a43732feb059d83f8732465
[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/hooks/live
10 ===================================================================
11 --- live-boot-grml.orig/hooks/live      2011-12-06 22:10:17.000000000 +0100
12 +++ live-boot-grml/hooks/live   2011-12-06 22:10:47.000000000 +0100
13 @@ -266,17 +266,14 @@
14         manual_add_modules crc32c
15  fi
16  
17 -if [ "${LIVE_DNS}" = "true" ]
18 -then
19 -       [ "${QUIET}" ] || echo -n " "dns
20 -       #copy_exec /lib/libnss_files.so.*      /lib  # /etc/hosts and /etc/passwd
21 -       copy_exec /lib/libnss_dns.so.*      /lib  # DNS server
22 -       #copy_exec /lib/libnss_compat.so.*      /lib  # /etc/passwd
23 +# DNS for initramfs
24 +#copy_exec /lib/libnss_files.so.*      /lib  # /etc/hosts and /etc/passwd
25 +copy_exec /lib/libnss_dns.so.*      /lib  # DNS server
26 +#copy_exec /lib/libnss_compat.so.*      /lib  # /etc/passwd
27  
28 -       # Configuration file - may be needed if /etc/hosts is used.
29 -       #mkdir -p $DESTDIR/etc
30 -       #cp -p /etc/nsswitch.conf $DESTDIR/etc
31 -fi
32 +# Configuration file - may be needed if /etc/hosts is used.
33 +#mkdir -p $DESTDIR/etc
34 +#cp -p /etc/nsswitch.conf $DESTDIR/etc
35  
36  if [ "${LIVE_UNIONMOUNT}" = "true" ]
37  then