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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to