Opened by Victor Martinez - 2013-11-02
Last edited by Victor Martinez - 2014-01-18
FS#64 - initramfs: resolving dns problems (bad address)
Since we are adding all needed files to get dns resolved, probably we can think about this and remove it or fix it adding libc and ld-linux-armhf files.
# ping localhost
ping: bad address
Final initramfs size will grow 1M. Removing libnss and libresolv files won't make it decrease too much. Could this be interesting for a debugging initramfs and not for a media installer?
Small patch to add those files:
diff –git a/Makefile b/Makefile
index 5338441..7d88f5f 100644
— a/Makefile
+++ b/Makefile
@@ -152,6 +152,7 @@ $(WORK)/initramfs.cpio: check-root busybox e2fsprogs dialog $(WORK)/mnt gen_init
done install -v -m 0755 $(WORK)/dialog-$(DIALOG_VERSION)/_install/usr/bin/dialog $(WORK)/mnt/usr/bin cp -dRv $(CLFS)/lib/libnss_{files*,dns*} $(CLFS)/lib/libresolv* $(WORK)/mnt/lib
+ cp -dRv $(CLFS)/lib/{ld-linux-armhf.so.3,libc-2.16.so,libc.so.6} $(WORK)/mnt/lib
install -d $(WORK)/mnt/usr/share/terminfo cp -dRv $(CLFS)/usr/share/terminfo/v $(WORK)/mnt/usr/share/terminfo install -v -m 0644 $(TOPDIR)/filesystem/{fstab,inittab,profile,protocols,*.conf} $(WORK)/mnt/etc
Saturday, 18 January 2014, 13:12 GMT
Reason for closing: Won't implement
Additional comments about closing:
We can chroot the rootfs and get full
network support inside it. At the moment
we can keep initrd/initramfs smaller
without these files.