Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset doesn't seem to work #13

Open
ZeroChaos- opened this issue Jul 10, 2018 · 9 comments
Open

reset doesn't seem to work #13

ZeroChaos- opened this issue Jul 10, 2018 · 9 comments

Comments

@ZeroChaos-
Copy link

if I --list-enrolled and then --reset and --list-enrolled again, all the hashes I've added are still there. Not being certain how this all works, I reboot and check --list-enrolled again and all the sha256 hashes are still there. Am I doing this wrong, or is this feature broken?

@lcp
Copy link
Owner

lcp commented Jul 12, 2018

Did MokManager show to ask for cleaning Mok?

@ZeroChaos-
Copy link
Author

secboot ~ # mokutil --reset
input password: 
input password again: 
Failed to write MokAuth
Failed to issue a reset request
secboot ~ # mount -o rw,remount /sys/firmware/efi/efivars/
secboot ~ # mokutil --reset
input password: 
input password again: 
secboot ~ # 

@ZeroChaos-
Copy link
Author

nothing changed during boot after that

@ZeroChaos-
Copy link
Author

It may be important to note that I'm using mokutil from 20170404 git, and mmx64.efi is version 15-5 from fedora here: https://koji.fedoraproject.org/koji/buildinfo?buildID=1079378

@lcp
Copy link
Owner

lcp commented Jul 16, 2018

If /sys/firmware/efi/efivars/MokAuth-* existed after "mokutil --reset", then mokutil already did its job. I wonder why MokManager didn't show during the next boot.

Could you check "efibootmgr -v" and see if shim.efi is in the default boot option?

@ZeroChaos-
Copy link
Author

ZeroChaos- commented Jul 16, 2018 via email

@lcp
Copy link
Owner

lcp commented Jul 17, 2018

Then this is probably an issue in shim. Please report the issue to https://github.com/rhboot/shim

@khimaros
Copy link

khimaros commented Sep 3, 2020

Intuitively, I would expect mokutil --reset to remove all of the Mok* EFI vars. Is there another flag for this? Any system (eg. the Debian Buster live CD) shipped with shim but without mmx64.efi will fail to load.

@lcp
Copy link
Owner

lcp commented Sep 22, 2020

Sorry for the late reply. In the beginning, there is only MokNew and MokAuth for MokList, so "--reset" is designed for MokList. Over time, there are more Mok Vars added, and it's not good to change the option now :(
The problem you had is caused by the changes in shim. I remember the older shim could skipped the loading of MokManager if it doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants