From 0799c4870567a5b21ae72e845e2379c03fa48c63 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Fri, 27 Feb 2015 20:09:13 +0000 Subject: [PATCH] Makefile:preproot: Make sure we've always got a local copy of resolv.conf Or else network will fail inside the chroot. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 5f4b8da..17478a4 100644 --- a/Makefile +++ b/Makefile @@ -124,6 +124,8 @@ preproot: stage3 $(PORTAGE_DIR) configs/fstab mkdir -p $(PKGDIR) $(DISTDIR) #$(inroot) sed -i 's/root:.*/root::9797:0:::::/' /etc/shadow cp configs/fstab $(CHROOT)/etc/fstab + rm -f $(CHROOT)/etc/resolv.conf + cp -L /etc/resolv.conf $(CHROOT)/etc/resolv.conf touch preproot stage3-$(ARCH)-latest.tar.bz2: