Unconditionally copy the build host /etc/resolv.conf into
the chroot directory, since hostname resolution may be needed in the case of building a dvd image (with packages) and also setting 'NOPORTS=1'. MFC after: 3 days X-MFC-With: r258305, r258307 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
042a51f641
commit
98e83c53af
@ -159,6 +159,7 @@ if [ "x${NOPORTS}" = "x" ]; then
|
||||
svn co ${SVNROOT}/${PORTBRANCH} ${CHROOTDIR}/usr/ports
|
||||
fi
|
||||
|
||||
cp /etc/resolv.conf ${CHROOTDIR}/etc/resolv.conf
|
||||
cd ${CHROOTDIR}/usr/src
|
||||
make ${CHROOT_WMAKEFLAGS} buildworld
|
||||
make ${CHROOT_IMAKEFLAGS} installworld DESTDIR=${CHROOTDIR}
|
||||
@ -193,7 +194,6 @@ if [ -e ${SRC_CONF} ] && [ ! -c ${SRC_CONF} ]; then
|
||||
fi
|
||||
|
||||
if [ -d ${CHROOTDIR}/usr/ports ]; then
|
||||
cp /etc/resolv.conf ${CHROOTDIR}/etc/resolv.conf
|
||||
build_doc_ports ${CHROOTDIR}
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user