hdiutil deprecation warning on macOS 27 from tmpdir() in darwin.sh
Fernando Viola
fernando.viola at gmail.com
Tue Sep 15 08:16:04 UTC 2026
Hi,
Since upgrading to macOS 27 (Golden Gate), running any "pass git ..."
command (e.g. "pass git pull") now prints the following warning before
executing:
hdiutil: WARNING: 'hdiutil attach -nomount ...' is deprecated. Please
use 'diskutil image attach --noMount ...' instead.
I tracked this down to src/platform/darwin.sh, where tmpdir() creates
a ramdisk using hdid:
DARWIN_RAMDISK_DEV="$(hdid -drivekey system-image=yes -nomount
'ram://32768' | cut -d ' ' -f 1)"
This is called from cmd_git() via "tmpdir nowarn" every time a git
subcommand is run through pass, even for read-only operations like
"pull" that never touch decrypted data.
In macOS 27, hdiutil is deprecated in favor of "diskutil image", which
now covers attach, create, resize, info and chpass. hdid still works
today, but triggers this warning on every invocation.
I don't have a confirmed working replacement command for the ram://
ramdisk case (unclear whether "diskutil image attach" supports the
ram:// scheme and the equivalent of "-drivekey system-image=yes"), but
wanted to flag this early given how visible the warning is (it appears
on every single "pass git" call).
Has anyone already looked into a diskutil image based replacement for
this ramdisk creation on Darwin?
Thanks,
Fernando
More information about the Password-Store
mailing list