From: Ulrich Dangel Date: Sun, 12 Jun 2011 03:16:04 +0000 (+0200) Subject: Add extra patch to support dns in initramfs X-Git-Tag: v3.0_a19-1+grml.00~6^2~4 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=52dcca5493c1a58029f247cf196759795274d806 Add extra patch to support dns in initramfs This patch is based on 10caf0b2db3fc04fae24ca896cf21f6aed12bbbc --- diff --git a/debian/patches/29_support_dns_in_initramfs.patch b/debian/patches/29_support_dns_in_initramfs.patch new file mode 100644 index 0000000..5f073e5 --- /dev/null +++ b/debian/patches/29_support_dns_in_initramfs.patch @@ -0,0 +1,38 @@ +commit 10caf0b2db3fc04fae24ca896cf21f6aed12bbbc +Author: Christian Hofstaedtler +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 diff --git a/debian/patches/series b/debian/patches/series index f4b9fac..b5d2910 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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