Open ink-splatters opened 3 months ago
We already run diskutil unmount force [disk]
(https://github.com/DeterminateSystems/nix-installer/blob/3cd59da03b1096fb826ebe8f14768beaf9ec038a/src/action/macos/unmount_apfs_volume.rs#L121-L124), and that's where this is failing. As far as I'm aware, that's the only way to force unmount a volume -- is that right?
Error
Uninstaller is broken and never succeeds. It's easy reproducible on latest
macOS
with volume encryption enabled (I didn't try not to encrypt Nix volume)Possible issue
you can't delete a volume to which you have open file descriptors
Possible solution
Force-unmounting a volume prior to deletion has always worked for me, unless volume was used by kernel
Metadata