Makefile:preproot: Make sure we've always got a local copy of resolv.conf

Or else network will fail inside the chroot.
This commit is contained in:
Albert Hopkins 2015-02-27 20:09:13 +00:00
parent 4775bc9b07
commit 0799c48705
1 changed files with 2 additions and 0 deletions

View File

@ -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: