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

svn at pcbsd.org svn at pcbsd.org
Tue Oct 9 16:56:56 PDT 2012


Author: kris
Date: 2012-10-09 23:56:56 +0000 (Tue, 09 Oct 2012)
New Revision: 19620

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

Cleanup old target dir if we use ZFS



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-10-09 18:48:19 UTC (rev 19619)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-10-09 23:56:56 UTC (rev 19620)
@@ -6789,6 +6789,7 @@
               zfs create -o mountpoint=${PBI_CHROOTZFS} -p ${tank}${PBI_CHROOTZFS}
 	      if [ $? -ne 0 ] ; then exit_err "Failed creating ZFS base dataset"; fi
 	    fi
+            rmdir "${PBI_BUILDTARGET}"
 	    PBI_BUILDTARGET="$PBI_CHROOTZFS"
 	fi
 



More information about the Commits mailing list