[PC-BSD Commits] r17672 - pcbsd/current/src-sh/warden/scripts/backend

svn at pcbsd.org svn at pcbsd.org
Fri Jul 6 10:57:18 PDT 2012


Author: kris
Date: 2012-07-06 17:57:18 +0000 (Fri, 06 Jul 2012)
New Revision: 17672

Modified:
   pcbsd/current/src-sh/warden/scripts/backend/functions.sh
Log:

Fix directories to unmount from portjail



Modified: pcbsd/current/src-sh/warden/scripts/backend/functions.sh
===================================================================
--- pcbsd/current/src-sh/warden/scripts/backend/functions.sh	2012-07-06 17:50:59 UTC (rev 17671)
+++ pcbsd/current/src-sh/warden/scripts/backend/functions.sh	2012-07-06 17:57:18 UTC (rev 17672)
@@ -173,7 +173,7 @@
 umountjailxfs() {
   status="0"
   # Umount all filesystems that are mounted into the portsjail
-  for mountpoint in $(mount | grep ${JDIR}/${1} | cut -d" " -f3); do
+  for mountpoint in $(mount | grep ${JDIR}/${1}/ | cut -d" " -f3); do
     if [ "$mountpoint" = "${JDIR}/${1}/dev" ] ; then continue ; fi
     if [ "$mountpoint" = "${JDIR}/${1}/" ] ; then continue ; fi
     if [ "$mountpoint" = "${JDIR}/${1}" ] ; then continue ; fi



More information about the Commits mailing list