cirruslabs / tart

macOS and Linux VMs on Apple Silicon to use in CI and other automations
https://tart.run
Other
3.8k stars 111 forks source link

tart run: do not require root to mount a block device #798

Closed edigaryev closed 5 months ago

edigaryev commented 5 months ago

There's an alternative way to achieve the correct permissions using chmod $USER /dev/diskX.

Also, use open(2) to discern between various types of errors and give a specific error message.

Related to https://github.com/cirruslabs/tart/issues/724.