vfuse
vfuse copied to clipboard
Error: local variable 'mount_point' referenced before assignment vfuse 3.0.0
Given:
- MacBookPro15,2 running macOS Catalina 10.15.4 (19E287)
- VMware Fusion 11.5.3 (not the Pro edition)
- AutoDMG 1.10b (587)
- python 3.7.7
- vfuse 3.0.0
- macOS 10.15.4 .dmg created using AutoDMG called
osx-10.15.4-19E287.apfs.dmg
- and much gratitude that you provided vfuse in the first place.
...when I run...
% vfuse -i osx-10.15.4-19E287.apfs.dmg
...I was expecting a virtual machine to be generated with the default name macos-vm.vmwarevm
.
Actually I get the following error and no VM is generated:
Mounting osx-10.15.4-19E287.apfs.dmg
Traceback (most recent call last):
File "/usr/local/vfuse/bin/vfuse", line 1201, in <module>
main()
File "/usr/local/vfuse/bin/vfuse", line 1051, in main
mount_point, disk_id, volume_kind = mount_dmg(source_dmg)
File "/usr/local/vfuse/bin/vfuse", line 282, in mount_dmg
return mount_point, disk_id, volume_kind
UnboundLocalError: local variable 'mount_point' referenced before assignment
%
hdiutil
shows the .dmg as mounted after the failure. Cleaning that up using
hdiutil info | grep /dev/disk | grep partition | cut -f 1 | xargs -I {} hdiutil detach {}
...and retrying vfuse
produces the same result.