mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-30 09:48:56 +00:00
1f8c88a7eb
TPM password must be 1-32 characters. Loop if the password is not valid or the repeated password doesn't match, so the user can try again. Move prompt_new_owner_password to functions and use in both gui-init and tpm-reset. Fixes #1336 Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
11 lines
183 B
Bash
Executable File
11 lines
183 B
Bash
Executable File
#!/bin/bash
|
|
. /etc/functions
|
|
|
|
echo '*****'
|
|
echo '***** WARNING: This will erase all keys and secrets from the TPM'
|
|
echo '*****'
|
|
|
|
prompt_new_owner_password
|
|
|
|
tpmr reset "$key_password"
|