[PC-BSD Commits] r7532 - pcbsd/current/mfsroot-overlay/root

svn at pcbsd.org svn at pcbsd.org
Thu Sep 9 15:39:54 PDT 2010


Author: kris
Date: 2010-09-09 15:39:54 -0700 (Thu, 09 Sep 2010)
New Revision: 7532

Modified:
   pcbsd/current/mfsroot-overlay/root/insMetaPkgs.sh
Log:

Copy over the resolv.conf when doing FTP meta-pkgs 



Modified: pcbsd/current/mfsroot-overlay/root/insMetaPkgs.sh
===================================================================
--- pcbsd/current/mfsroot-overlay/root/insMetaPkgs.sh	2010-09-08 19:10:12 UTC (rev 7531)
+++ pcbsd/current/mfsroot-overlay/root/insMetaPkgs.sh	2010-09-09 22:39:54 UTC (rev 7532)
@@ -10,6 +10,11 @@
 	mkdir -p ${FSMNT}/.cdmnt
 	mount_nullfs ${CDMNT}/packages ${FSMNT}/.cdmnt
 	LOC="/.cdmnt"
+else
+	# Need resolv.conf in the chroot environment
+	if [ -e "/etc/resolv.conf" ] ; then
+		cp /etc/resolv.conf ${FSMNT}/etc/resolv.conf
+	fi
 fi
 
 chroot $FSMNT /usr/local/bin/pc-metapkgmanager add $PKGS $LOC



More information about the Commits mailing list