Change cleanup command to accomodate swap disk

Hyperkit was mounting swap disks, which we can't detach with the
hdiutil util like we're using.  Its sufficient to just hdiutil detach
/dev/disk1

```
/dev/disk1	FDisk_partition_scheme
/dev/disk1s1	Linux
/dev/disk1s2	Linux_Swap
```
pull/1895/head
Matt Rickard 2017-08-28 10:43:32 -07:00
parent 3c9603ad64
commit afc8b52fd8
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ vboxmanage list vms \
# Clean up xhyve disks
hdiutil info \
| grep -v /dev/disk0 \
| grep /dev/ \
| egrep \/dev\/disk[1-9][^s] \
| awk '{print $1}' \
| xargs -I {} sh -c "hdiutil detach {}" \
|| true