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
parent
3c9603ad64
commit
afc8b52fd8
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue