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

svn at pcbsd.org svn at pcbsd.org
Tue Jul 31 10:11:29 PDT 2012


Author: kris
Date: 2012-07-31 17:11:29 +0000 (Tue, 31 Jul 2012)
New Revision: 18021

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

Manually specify the ZFS jail mount-point incase user has altroot or some other
such nonsense specified



Modified: pcbsd/current/src-sh/warden/scripts/backend/createjail.sh
===================================================================
--- pcbsd/current/src-sh/warden/scripts/backend/createjail.sh	2012-07-31 15:18:41 UTC (rev 18020)
+++ pcbsd/current/src-sh/warden/scripts/backend/createjail.sh	2012-07-31 17:11:29 UTC (rev 18021)
@@ -96,7 +96,7 @@
 if [ $? -eq 0 ] ; then
   # Create ZFS mount
   tank=`getZFSTank "$JDIR"`
-  zfs create -p ${tank}${JAILDIR}
+  zfs create -o mountpoint=${JAILDIR} -p ${tank}${JAILDIR}
 else
   mkdir -p "${JAILDIR}"
 fi



More information about the Commits mailing list