[PC-BSD Commits] r13696 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Thu Nov 3 08:04:59 PDT 2011


Author: kris
Date: 2011-11-03 08:04:58 -0700 (Thu, 03 Nov 2011)
New Revision: 13696

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Make sure we umount properly




Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-11-03 15:03:59 UTC (rev 13695)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-11-03 15:04:58 UTC (rev 13696)
@@ -6032,10 +6032,10 @@
 	
 	# Unmount /dev if mounted
 	echo "Cleaning $PBI_CHROOTDIR"
-	umount ${PBI_CHROOTDIR}/dev >/dev/null 2>/dev/null
-	umount ${PBI_CHROOTDIR}/compat/linux/proc >/dev/null 2>/dev/null
-	umount ${PBI_CHROOTDIR}/usr/ports >/dev/null 2>/dev/null
-	umount ${PBI_CHROOTDIR}/tmpfs >/dev/null 2>/dev/null
+	umount -f ${PBI_CHROOTDIR}/dev >/dev/null 2>/dev/null
+	umount -f ${PBI_CHROOTDIR}/compat/linux/proc >/dev/null 2>/dev/null
+	umount -f ${PBI_CHROOTDIR}/usr/ports >/dev/null 2>/dev/null
+	umount -f ${PBI_CHROOTDIR}/tmpfs >/dev/null 2>/dev/null
 	rm -rf "${PBI_CHROOTDIR}" >/dev/null 2>/dev/null
 	chflags -R noschg ${PBI_CHROOTDIR} >/dev/null 2>/dev/null
 	rm -rf "${PBI_CHROOTDIR}" >/dev/null 2>/dev/null



More information about the Commits mailing list