svn commit: r270754 - head/share/examples/bhyve

Craig Rodrigues rodrigc at FreeBSD.org
Thu Aug 28 16:26:14 UTC 2014


Author: rodrigc
Date: Thu Aug 28 16:26:13 2014
New Revision: 270754
URL: http://svnweb.freebsd.org/changeset/base/270754

Log:
  Use "file -s", so that we can run vmrun.sh against special devices such
  as /dev/md memory file systems
  
  Reviewed by: neel

Modified:
  head/share/examples/bhyve/vmrun.sh

Modified: head/share/examples/bhyve/vmrun.sh
==============================================================================
--- head/share/examples/bhyve/vmrun.sh	Thu Aug 28 15:05:42 2014	(r270753)
+++ head/share/examples/bhyve/vmrun.sh	Thu Aug 28 16:26:13 2014	(r270754)
@@ -177,10 +177,10 @@ ${BHYVECTL} --vm=${vmname} --destroy > /
 
 while [ 1 ]; do
 
-	file ${virtio_diskdev} | grep "boot sector" > /dev/null
+	file -s ${virtio_diskdev} | grep "boot sector" > /dev/null
 	rc=$?
 	if [ $rc -ne 0 ]; then
-		file ${virtio_diskdev} | grep ": Unix Fast File sys" > /dev/null
+		file -s ${virtio_diskdev} | grep ": Unix Fast File sys" > /dev/null
 		rc=$?
 	fi
 	if [ $rc -ne 0 ]; then


More information about the svn-src-all mailing list