From owner-cvs-ports@FreeBSD.ORG Sat Feb 12 03:38:08 2005 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7312D16A4CE; Sat, 12 Feb 2005 03:38:08 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62C7343D1D; Sat, 12 Feb 2005 03:38:08 +0000 (GMT) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1C3c8ci042591; Sat, 12 Feb 2005 03:38:08 GMT (envelope-from kris@repoman.freebsd.org) Received: (from kris@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1C3c85M042590; Sat, 12 Feb 2005 03:38:08 GMT (envelope-from kris) Message-Id: <200502120338.j1C3c85M042590@repoman.freebsd.org> From: Kris Kennaway Date: Sat, 12 Feb 2005 03:38:08 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: ports/Tools/portbuild/scripts clean-chroot X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 03:38:08 -0000 kris 2005-02-12 03:38:08 UTC FreeBSD ports repository Modified files: Tools/portbuild/scripts clean-chroot Log: * Instead of using umount -f to unmount things, first use fstat to look for processes holding open references within the FS and kill them, then use regular umount. This is necessary now that devfs cannot be force-unmounted, and has the benefit that processes can't hang around holding references to files between port builds. * Reduce possibility for error by testing for presence of executable ldconfig inside the chroot before attempting to run it (e.g. it may not be there if the chroot was not completely initialized) Revision Changes Path 1.5 +44 -7 ports/Tools/portbuild/scripts/clean-chroot