homebysix / jss-filevault-reissue

A framework for re-escrowing missing or invalid FileVault keys with Jamf Pro.
Apache License 2.0
186 stars 56 forks source link

FileVault.icns no longer present on Big Sur, resulting in no password prompts #47

Closed UESCDurandal closed 3 years ago

UESCDurandal commented 3 years ago

We discovered that /System/Library/PreferencePanes/Security.prefPane/Contents/Resources/FileVault.icns is no longer present on Macs running Big Sur and in cases where our defined logo image is missing then the script will output the following logs without the actual prompt appearing on screen.

Script result: [WARNING] This script has not been tested on macOS Big Sur. Use at your own risk.
No logo provided, or no logo exists at specified path. Using FileVault icon.
Alerting user username about incoming password prompt...
Prompting username for their Mac password...
Prompting username for their Mac password (attempt 2)...
Prompting username for their Mac password (attempt 3)...
Prompting username for their Mac password (attempt 4)...
Prompting username for their Mac password (attempt 5)...
[ERROR] Password prompt unsuccessful after 5 attempts. Displaying "forgot password" message...

To fix this problem we have replaced that default path with /System/Library/PreferencePanes/Security.prefPane/Contents/Resources/SystemPreferences_Security.tiff instead, which is valid on at least Catalina and Big Sur.

homebysix commented 3 years ago

Hi @UESCDurandal - Please share what version of the script you're running in which you're encountering this problem. I believe it was fixed back in December.

UESCDurandal commented 3 years ago

Ah, my apologies I had thought I was running the latest with version 1.10.0. Nevermind!