diff options
author | Travis A. Everett <travis.a.everett@gmail.com> | 2022-02-22 12:44:15 -0600 |
---|---|---|
committer | Travis A. Everett <travis.a.everett@gmail.com> | 2022-02-22 12:44:15 -0600 |
commit | ba9a8c4b3d0f8f008a2067e26e89d6165d14c814 (patch) | |
tree | ef96f3a1b1a1a0952dd44643d08f73c1ae11aae6 /scripts | |
parent | 1fd127a06833c19a5a2965bd41cf4f695773cca6 (diff) |
install-darwin: track mount permission edge-case fix
Same as 1fd127a06833c19a5a2965bd41cf4f695773cca6, but applied to a
code path (volume_pass_works -> verify_volume_pass) that the reporting
user didn't hit and wasn't able to trigger manually. I am not certain
but I suspect it will be easier to add prophylactically than to debug
if its absence causes trouble some day.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-darwin-volume.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/create-darwin-volume.sh b/scripts/create-darwin-volume.sh index ece4f29bb..4bac4b7ba 100755 --- a/scripts/create-darwin-volume.sh +++ b/scripts/create-darwin-volume.sh @@ -246,7 +246,8 @@ get_volume_pass() { verify_volume_pass() { local volume_special="$1" # (i.e., disk1s7) local volume_uuid="$2" - /usr/sbin/diskutil apfs unlockVolume "$volume_special" -verify -stdinpassphrase -user "$volume_uuid" + _sudo "to confirm the password actually unlocks the volume" \ + /usr/sbin/diskutil apfs unlockVolume "$volume_special" -verify -stdinpassphrase -user "$volume_uuid" } volume_pass_works() { |