[PC-BSD Commits] r17671 - pcbsd/current/src-sh/warden/scripts/backend
svn at pcbsd.org
svn at pcbsd.org
Fri Jul 6 10:50:59 PDT 2012
Author: kris
Date: 2012-07-06 17:50:59 +0000 (Fri, 06 Jul 2012)
New Revision: 17671
Modified:
pcbsd/current/src-sh/warden/scripts/backend/functions.sh
Log:
When stopping a portjail, make sure we don't unmount the ZFS filesystem
by mistake
Modified: pcbsd/current/src-sh/warden/scripts/backend/functions.sh
===================================================================
--- pcbsd/current/src-sh/warden/scripts/backend/functions.sh 2012-07-06 17:02:54 UTC (rev 17670)
+++ pcbsd/current/src-sh/warden/scripts/backend/functions.sh 2012-07-06 17:50:59 UTC (rev 17671)
@@ -175,7 +175,9 @@
# Umount all filesystems that are mounted into the portsjail
for mountpoint in $(mount | grep ${JDIR}/${1} | cut -d" " -f3); do
if [ "$mountpoint" = "${JDIR}/${1}/dev" ] ; then continue ; fi
- #echo "Unmounting $mountpoint"
+ if [ "$mountpoint" = "${JDIR}/${1}/" ] ; then continue ; fi
+ if [ "$mountpoint" = "${JDIR}/${1}" ] ; then continue ; fi
+ echo "Unmounting $mountpoint"
umount -f ${mountpoint}
if [ $? -ne 0 ] ; then status="1" ; fi
done
More information about the Commits
mailing list