diff options
| author | Matthew Garrett <mjg@redhat.com> | 2012-10-06 17:20:30 -0400 |
|---|---|---|
| committer | Matthew Garrett <mjg@redhat.com> | 2012-10-06 17:20:30 -0400 |
| commit | 32b08c73d89699397b8248968f7d6fffbc5fa355 (patch) | |
| tree | db1f8f59ac6c7ebd16004e2c38e8680017e32698 | |
| parent | e4889c525baa9b0d966ba7dec7ec949fa0ed7755 (diff) | |
| download | efi-boot-shim-32b08c73d89699397b8248968f7d6fffbc5fa355.tar.gz efi-boot-shim-32b08c73d89699397b8248968f7d6fffbc5fa355.zip | |
Fall back to MokManager if grub failed to validate
If we can't verify grub, fall back to MokManager. This permits shipping a
copy of shim and MokManager without distributing a key, letting
distributions provide their own for user installation.
| -rw-r--r-- | shim.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1019,8 +1019,10 @@ EFI_STATUS init_grub(EFI_HANDLE image_handle) efi_status = start_image(image_handle, SECOND_STAGE); if (efi_status != EFI_SUCCESS) { - Print(L"Failed to start grub\n"); - goto done; + if (efi_status == EFI_ACCESS_DENIED) + efi_status = start_image(image_handle, MOK_MANAGER); + else + Print(L"Failed to start grub\n"); } done: |
