svn commit: r271416 - user/gjb/thermite

Glen Barber gjb at FreeBSD.org
Thu Sep 11 02:42:20 UTC 2014


Author: gjb
Date: Thu Sep 11 02:42:20 2014
New Revision: 271416
URL: http://svnweb.freebsd.org/changeset/base/271416

Log:
  Prevent stale devfs mount that is needed when building the
  qemu-img qcow2 vm image.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  user/gjb/thermite/mk-vmimage.sh

Modified: user/gjb/thermite/mk-vmimage.sh
==============================================================================
--- user/gjb/thermite/mk-vmimage.sh	Thu Sep 11 02:37:02 2014	(r271415)
+++ user/gjb/thermite/mk-vmimage.sh	Thu Sep 11 02:42:20 2014	(r271416)
@@ -111,6 +111,9 @@ create_vmimage_qemu() {
 	chroot ${CHROOTDIR} make -s -C /usr/src DESTDIR=/vmimage/mnt \
 		installworld installkernel distribution
 	set -e
+	while ! umount ${CHROOTDIR}/vmimage/mnt/dev; do
+		sleep 1
+	done
 	create_etc
 
 	for f in ${diskformats}; do


More information about the svn-src-user mailing list