Bug 1731757 - Additon of removal of keys causes boot errors
Summary: Additon of removal of keys causes boot errors
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mokutil
Version: 31
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-21 20:16 UTC by maarten
Modified: 2019-08-13 18:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
Boot error text (118.06 KB, image/jpeg)
2019-07-21 20:16 UTC, maarten
no flags Details

Description maarten 2019-07-21 20:16:23 UTC
Created attachment 1592468 [details]
Boot error text

Description of problem:
I want to remove/add keys to shim using mokutil.
After a reboot to confirm my addition/removal, my machine fails to boot.
The following error is displayed:
```
Failed to open /EFI/BOOT/mmx64.efi - Not Found
Failed to load Image /EFI/BOOT/mmx64.efi: Not Found
Failed to start MokManager: Not Found
Something has gone seriously wrong: import_mok_state() failedFAILED
: Not Found
```
(see attachment)

Version-Release number of selected component (if applicable):
0.3.0-11.fc30

How reproducible:
This happened both times after I had removed my previously added key and after I have added a new key.

Steps to Reproduce:
1. openssl req -x509 -new -utf8 -sha256 -batch -outform DER -out public_key.der -keyout private_key.priv
2. sudo mokutil --import public_key.der

Actual results:
After reboot, the system shows the error.
```
Failed to open /EFI/BOOT/mmx64.efi - Not Found
Failed to load Image /EFI/BOOT/mmx64.efi: Not Found
Failed to start MokManager: Not Found
Something has gone seriously wrong: import_mok_state() failedFAILED
: Not Found
```
I am able to fix this by starting my system using a usb live image.
When booting the live use image, MokManager will add the key.

Expected results:
After POST tests, the MokManager should add the keys without any error and needing a live image.

Comment 1 Ben Cotton 2019-08-13 17:02:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 2 Ben Cotton 2019-08-13 18:58:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.


Note You need to log in before you can comment on or make changes to this bug.