I cannot get Monterey to decrypt volumes at boot on my M1 MacBook Pro. I have this working on another Mac running Catalina where I'm using BootUnlock. I initially installed it directly from the download but that was the x86 version, so I rebuilt it, cleaned down the remnants of the x86 version and re-installed the dual-architecture version:
root@samhain ~ # file /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/*
/Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/BootUnlock: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/BootUnlock (for architecture x86_64): Mach-O 64-bit executable x86_64
/Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/BootUnlock (for architecture arm64e): Mach-O 64-bit executable arm64e
/Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/diskutil.xsl: ASCII text
/Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/helper.sh: Bourne-Again shell script text executable, ASCII text
/Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/update.sh: Bourne-Again shell script text executable, ASCII text
root@samhain ~ #
It had set the access to the volumes correctly:
However when I rebooted it and logged in it was asking for permission to access the Keychain:
Any ideas to get BootUnlock working or suggestions of an alternative tool or method?
Update 1
I set up a Monterey VM on my Mac Pro (2019, x86) and installed BootUnlock—and it works. On the face of it this is an M1 problem. The log (/var/log/BootUnlock.log
) on the MacBook Pro M1 has entries like this:
Trying to unlock volume "sTimeMachine" with UUID ED793E20-4F9D-4A8E-9185-B2735A1164B0 ...
NOTICE: could not find the secret on the System keychain, skipping the volume.
Update 2
It's very simple really, the binary is being killed:
root@samhain ~ # /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/BootUnlock
zsh: killed /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/BootUnlock
root@samhain ~ #
This happens when you attempt to run the wrong architecture but as shown above BootUnlock
has both architectures.