Add extra patch to support dns in initramfs
authorUlrich Dangel <mru@grml.org>
Sun, 12 Jun 2011 03:16:04 +0000 (05:16 +0200)
committerUlrich Dangel <mru@grml.org>
Mon, 13 Jun 2011 00:47:22 +0000 (02:47 +0200)
This patch is based on 10caf0b2db3fc04fae24ca896cf21f6aed12bbbc

debian/patches/29_support_dns_in_initramfs.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/29_support_dns_in_initramfs.patch b/debian/patches/29_support_dns_in_initramfs.patch
new file mode 100644 (file)
index 0000000..5f073e5
--- /dev/null
@@ -0,0 +1,38 @@
+commit 10caf0b2db3fc04fae24ca896cf21f6aed12bbbc
+Author: Christian Hofstaedtler <ch@grml.org>
+Date:   Fri Mar 25 23:02:38 2011 +0100
+
+    support DNS in boot environment
+    
+    Thanks to Ulrich Dangel for discovering this. [Closes: issue848]
+
+diff --git a/hooks/live b/hooks/live
+index 309c26f..3862a60 100755
+--- a/hooks/live
++++ b/hooks/live
+@@ -252,17 +252,14 @@ then
+       manual_add_modules crc32c
+ fi
+-if [ "${LIVE_DNS}" = "true" ]
+-then
+-      [ "${QUIET}" ] || echo -n " "dns
+-      #copy_exec /lib/libnss_files.so.*      /lib  # /etc/hosts and /etc/passwd
+-      copy_exec /lib/libnss_dns.so.*      /lib  # DNS server
+-      #copy_exec /lib/libnss_compat.so.*      /lib  # /etc/passwd
+-
+-      # Configuration file - may be needed if /etc/hosts is used.
+-      #mkdir -p $DESTDIR/etc
+-      #cp -p /etc/nsswitch.conf $DESTDIR/etc
+-fi
++# DNS for initramfs
++#copy_exec /lib/libnss_files.so.*      /lib  # /etc/hosts and /etc/passwd
++copy_exec /lib/libnss_dns.so.*      /lib  # DNS server
++#copy_exec /lib/libnss_compat.so.*      /lib  # /etc/passwd
++
++# Configuration file - may be needed if /etc/hosts is used.
++#mkdir -p $DESTDIR/etc
++#cp -p /etc/nsswitch.conf $DESTDIR/etc
+ if [ "${LIVE_UNIONMOUNT}" = "true" ]
+ then
index f4b9fac..b5d2910 100644 (file)
@@ -14,4 +14,5 @@
 26_support_dns_bootoption.patch
 27_support_static_ip.patch
 28_remove_localized_manpages.patch
+29_support_dns_in_initramfs.patch
 30_support_multiarch_dns.patch