mirror of
https://github.com/morluto/rea.git
synced 2026-11-09 16:26:36 +00:00
An APFS disk image attaches as an image disk plus a synthesized APFS container, and hdiutil reports both as whole disks. Detaching the container also ejects the image disk, so the reverse-order detach then failed with "No such file or directory" and every APFS DMG inventory ended in "DMG detach or mount-root cleanup failed". APFS is the default format of `hdiutil create` on current macOS. When a detach fails, ask `hdiutil info -plist` whether the device is still attached. A device that is gone counts as detached; one that is still listed, or whose state cannot be read, remains a cleanup failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>