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