summaryrefslogtreecommitdiff
path: root/MokManager.c
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2013-09-26 11:58:02 -0400
committerPeter Jones <pjones@redhat.com>2013-09-26 11:58:02 -0400
commit2648d29f006c6e27de9ba5df755be9670fcfbb3e (patch)
tree58f30ba59abea323c09cb33bab387c1af20f2f1a /MokManager.c
parent5f7ade1950d6d5ef8bc157434ada0888e91e8c0f (diff)
downloadefi-boot-shim-2648d29f006c6e27de9ba5df755be9670fcfbb3e.tar.gz
efi-boot-shim-2648d29f006c6e27de9ba5df755be9670fcfbb3e.zip
MokManager: reboot the system after clearing MOK password
Diffstat (limited to 'MokManager.c')
-rw-r--r--MokManager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/MokManager.c b/MokManager.c
index db3f4c06..74167c80 100644
--- a/MokManager.c
+++ b/MokManager.c
@@ -1122,7 +1122,11 @@ static INTN mok_pw_prompt (void *MokPW, UINTN MokPWSize) {
LibDeleteVariable(L"MokPWStore", &shim_lock_guid);
LibDeleteVariable(L"MokPW", &shim_lock_guid);
- return 0;
+ console_notify(L"The system must now be rebooted");
+ uefi_call_wrapper(RT->ResetSystem, 4, EfiResetWarm, EFI_SUCCESS, 0,
+ NULL);
+ console_notify(L"Failed to reboot");
+ return -1;
}
if (MokPWSize == PASSWORD_CRYPT_SIZE) {