svn commit: r365259 - user/gjb/thermite-git

Glen Barber gjb at FreeBSD.org
Wed Sep 2 17:26:15 UTC 2020


Author: gjb
Date: Wed Sep  2 17:26:14 2020
New Revision: 365259
URL: https://svnweb.freebsd.org/changeset/base/365259

Log:
  Re-sync with releng repo:
  - Add additional zfs datasets to destroy.
  - Call zfs_teardown() twice, as some datasets are created in non-intuitive
    ways.
  
  Sponsored by:	Rubicon Communications, LLC (netgate.com)

Modified:
  user/gjb/thermite-git/zfs-cleanup.sh

Modified: user/gjb/thermite-git/zfs-cleanup.sh
==============================================================================
--- user/gjb/thermite-git/zfs-cleanup.sh	Wed Sep  2 16:29:40 2020	(r365258)
+++ user/gjb/thermite-git/zfs-cleanup.sh	Wed Sep  2 17:26:14 2020	(r365259)
@@ -93,11 +93,26 @@ zfs_teardown() {
 		done
 	done
 
-	zfs destroy ${zfs_parent}/${r}-amd64-worldseed-snap at clone
-	zfs destroy ${zfs_parent}/${r}-amd64-worldseed-snap
-	zfs destroy ${zfs_parent}/${r}-i386-worldseed-snap at clone
-	zfs destroy ${zfs_parent}/${r}-i386-worldseed-snap
+	# XXX
+	zfs destroy ${zfs_parent}/releng/scripts-${t}shot/chroots
+	zfs destroy ${zfs_parent}/releng/scripts-${t}shot
+	zfs destroy ${zfs_parent}/releng
+	zfs destroy ${zfs_parent}/${r}-ports-${t}@clone
+	zfs destroy ${zfs_parent}/${r}-src-${t}@clone
+	zfs destroy ${zfs_parent}/releng/scripts-${t}shot/chroots/${r}/amd64/snap
+	zfs destroy ${zfs_parent}/releng/scripts-${t}shot/chroots/${r}/amd64
+	zfs destroy ${zfs_parent}/releng/scripts-${t}shot/chroots/${r}
+	zfs destroy ${zfs_parent}/${r}-chroots-${t}
+	zfs destroy ${zfs_parent}/${r}-logs-${t}
+	zfs destroy ${zfs_parent}/${r}-ports-${t}
+	zfs destroy ${zfs_parent}/${r}-src-${t}
+	# XXX
 
+	zfs destroy ${zfs_parent}/${r}-amd64-worldseed-${t}@clone
+	zfs destroy ${zfs_parent}/${r}-amd64-worldseed-${t}
+	zfs destroy ${zfs_parent}/${r}-i386-worldseed-${t}@clone
+	zfs destroy ${zfs_parent}/${r}-i386-worldseed-${t}
+
 	echo -n "ZFS datasets were destroyed.  They will be created"
 	echo " automatically via thermite.sh."
 
@@ -144,6 +159,7 @@ main() {
 	pfx="==="
 
 	delete_only=1
+	zfs_teardown
 	zfs_teardown
 }
 


More information about the svn-src-user mailing list