X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpatches%2F29_support_dns_in_initramfs.patch;fp=debian%2Fpatches%2F29_support_dns_in_initramfs.patch;h=5f073e5c6944d83faff6fe6dd7084e13827c553a;hb=52dcca5493c1a58029f247cf196759795274d806;hp=0000000000000000000000000000000000000000;hpb=dbc32c9e157ae184f5fe464f250f9f616e536e9f;p=live-boot-grml.git 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