mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-13 21:56:57 +00:00
Clear screen before prompting
We were drawing prompts on top of existing text, which was less than ideal.
This commit is contained in:
parent
16c512f9b5
commit
34f0c4abc0
@ -708,6 +708,8 @@ static INTN mok_sb_prompt (void *MokSB, void *data2, void *data3) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut);
|
||||
|
||||
while (fail_count < 3) {
|
||||
Print(L"Enter Secure Boot passphrase: ");
|
||||
get_line(&length, password, SB_PASSWORD_LEN, 0);
|
||||
@ -797,6 +799,8 @@ static INTN mok_pw_prompt (void *MokPW, void *data2, void *data3) {
|
||||
|
||||
LibDeleteVariable(L"MokPW", &shim_lock_guid);
|
||||
|
||||
uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut);
|
||||
|
||||
while (fail_count < 3) {
|
||||
Print(L"Confirm MOK passphrase: ");
|
||||
get_line(&length, password, PASSWORD_MAX, 0);
|
||||
@ -1453,6 +1457,8 @@ static BOOLEAN verify_pw(void)
|
||||
if (attributes & EFI_VARIABLE_RUNTIME_ACCESS)
|
||||
return TRUE;
|
||||
|
||||
uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut);
|
||||
|
||||
while (fail_count < 3) {
|
||||
Print(L"Enter MOK password: ");
|
||||
get_line(&length, password, PASSWORD_MAX, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user