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:
parent
4775bc9b07
commit
0799c48705
2
Makefile
2
Makefile
|
@ -124,6 +124,8 @@ preproot: stage3 $(PORTAGE_DIR) configs/fstab
|
||||||
mkdir -p $(PKGDIR) $(DISTDIR)
|
mkdir -p $(PKGDIR) $(DISTDIR)
|
||||||
#$(inroot) sed -i 's/root:.*/root::9797:0:::::/' /etc/shadow
|
#$(inroot) sed -i 's/root:.*/root::9797:0:::::/' /etc/shadow
|
||||||
cp configs/fstab $(CHROOT)/etc/fstab
|
cp configs/fstab $(CHROOT)/etc/fstab
|
||||||
|
rm -f $(CHROOT)/etc/resolv.conf
|
||||||
|
cp -L /etc/resolv.conf $(CHROOT)/etc/resolv.conf
|
||||||
touch preproot
|
touch preproot
|
||||||
|
|
||||||
stage3-$(ARCH)-latest.tar.bz2:
|
stage3-$(ARCH)-latest.tar.bz2:
|
||||||
|
|
Loading…
Reference in New Issue