Skip to content

Failure to unlock volumes on attached Apple_RAID #12

@imcnish

Description

@imcnish

Doesn't seem to work until after a user is logged in. Would love any suggestions/thoughts/help.

No problems:

  • Building.
  • Installing.
  • Adding an encrypted volume pw to the System keychain.
  • Unlocking and mounting an encrypted volume after a user logs in.

Process to recreate the issue (after install and configuring BootUnlock):

  • Reboot the system.
  • Admin "test1" user pw entered at pre-boot login (FileVault boot decryption).
  • System boots.
  • Admin "test1" username and pw entered for login. This user's home dir is located on the encrypted external drive (i.e. "/Volumes/Users").
  • Admin "test1" login fails with a pop-up containing the error 'You are unable to log in to the user account "test1" at this time. Logging in to the account failed because an error occurred.'
  • Admin "test2" username and pw entered for login. This user's home dir is located on the encrypted boot drive (i.e. "Macintosh HD").
  • Admin "test2" login succeeds.
  • From the "test2" account, test logging in as the "test1" user via "ssh test1@127.0.0.1". Login as "test1" succeeds and test1's HOME is on the encrypted external drive ("/Volumes/Users") -- where it should be.

Basic info:

  • macOS 10.15.7
  • Volume "Macintosh HD" is internal, APFS, encrypted
  • Volume "Users" is external, APFS, encrypted. This volume is physically located on an internal m.2 SSD (via PCIe riser card).
  • BootUnlock v1.5.0. No errors during installation.
  • In keychain.app --> System --> Name=Users --> Access Control --> "Always allow access by these applications" includes "BootUnlock" (it's the only entry).

BootUnlock.log (cleared just before reboot and the Process to recreate the issue described above):

ian834@machine.local:/var/log [48] % cat BootUnlock.log
=== Wed Oct 28 11:27:30 PDT 2020 ===
=== Wed Oct 28 11:28:16 PDT 2020 ===
Trying to unlock volume "Users" with UUID 73E6E581-C9A1-4D84-9B99-B831CF1E9EC3 ...
Unlocking any cryptographic user on APFS Volume disk7s3
Unlocked and mounted APFS Volume
=== Wed Oct 28 11:28:24 PDT 2020 ===
=== Wed Oct 28 11:30:13 PDT 2020 ===
Trying to unlock volume "Users" with UUID 73E6E581-C9A1-4D84-9B99-B831CF1E9EC3 ...
Unlocking any cryptographic user on APFS Volume disk7s3
Unlocked and mounted APFS Volume
=== Wed Oct 28 11:30:25 PDT 2020 ===
=== Wed Oct 28 11:30:36 PDT 2020 ===
=== Wed Oct 28 11:41:35 PDT 2020 ===

Messages from syslog:

ian834@machine.local:/var/log [49] % grep BootUnlock /var/log/system.log
/var/log/system.log:Oct 28 11:27:31 machine com.apple.xpc.launchd[1] (au.com.openwall.BootUnlock[5653]): Service exited with abnormal code: 1
/var/log/system.log:Oct 28 11:28:20 machine com.apple.xpc.launchd[1] (au.com.openwall.BootUnlock): Service only ran for 6 seconds. Pushing respawn out by 4 seconds.
/var/log/system.log:Oct 28 11:28:24 machine com.apple.xpc.launchd[1] (au.com.openwall.BootUnlock[370]): Service exited with abnormal code: 1
/var/log/system.log:Oct 28 11:30:27 machine com.apple.xpc.launchd[1] (au.com.openwall.BootUnlock[1607]): Service exited with abnormal code: 1
/var/log/system.log:Oct 28 11:30:35 machine com.apple.xpc.launchd[1] (au.com.openwall.BootUnlock): Service only ran for 9 seconds. Pushing respawn out by 1 seconds.
/var/log/system.log:Oct 28 11:30:36 machine com.apple.xpc.launchd[1] (au.com.openwall.BootUnlock[1815]): Service exited with abnormal code: 1
/var/log/system.log:Oct 28 11:41:36 machine com.apple.xpc.launchd[1] (au.com.openwall.BootUnlock[2349]): Service exited with abnormal code: 1

Manual execution of 'helper.sh' works fine:

ian834@machine.local:/var/log [50] % sudo /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/helper.sh
=== Wed Oct 28 11:53:59 PDT 2020 ===
Trying to unlock volume "Users" with UUID 73E6E581-C9A1-4D84-9B99-B831CF1E9EC3 ...
Unlocking any cryptographic user on APFS Volume disk7s3
Unlocked and mounted APFS Volume

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions