Use "file -s", so that we can run vmrun.sh against special devices such
as /dev/md memory file systems Reviewed by: neel
This commit is contained in:
parent
24303da93c
commit
2131e64e12
@ -177,10 +177,10 @@ ${BHYVECTL} --vm=${vmname} --destroy > /dev/null 2>&1
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user