svn commit: r258308 - head/release

Glen Barber gjb at FreeBSD.org
Mon Nov 18 16:04:05 UTC 2013


Author: gjb
Date: Mon Nov 18 16:04:04 2013
New Revision: 258308
URL: http://svnweb.freebsd.org/changeset/base/258308

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

Modified:
  head/release/release.sh

Modified: head/release/release.sh
==============================================================================
--- head/release/release.sh	Mon Nov 18 15:22:55 2013	(r258307)
+++ head/release/release.sh	Mon Nov 18 16:04:04 2013	(r258308)
@@ -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_CO
 fi
 
 if [ -d ${CHROOTDIR}/usr/ports ]; then
-	cp /etc/resolv.conf ${CHROOTDIR}/etc/resolv.conf
 	build_doc_ports ${CHROOTDIR}
 fi
 


More information about the svn-src-head mailing list