svn commit: r324033 - head/tools/tools/nanobsd

Gleb Smirnoff glebius at FreeBSD.org
Tue Sep 26 21:54:20 UTC 2017


Author: glebius
Date: Tue Sep 26 21:54:19 2017
New Revision: 324033
URL: https://svnweb.freebsd.org/changeset/base/324033

Log:
  Fix regression from r323855.  The EXIT trap now isn't cleared, so upon
  exit it tried to unmount already unmounted partition, resulting in failure.

Modified:
  head/tools/tools/nanobsd/legacy.sh

Modified: head/tools/tools/nanobsd/legacy.sh
==============================================================================
--- head/tools/tools/nanobsd/legacy.sh	Tue Sep 26 21:18:43 2017	(r324032)
+++ head/tools/tools/nanobsd/legacy.sh	Tue Sep 26 21:54:19 2017	(r324033)
@@ -197,7 +197,7 @@ create_diskimage ( ) (
 	fi
 	mdconfig -d -u $MD
 
-	trap - 1 2 15
+	trap - 1 2 15 EXIT
 
 	) > ${NANO_LOG}/_.di 2>&1
 )


More information about the svn-src-all mailing list