lcp / mokutil

The utility to manipulate machine owner keys
GNU General Public License v3.0
67 stars 37 forks source link

I am going to uninstall ubuntu, do I need to considering uninstall mok? #29

Closed xiongmao86 closed 4 years ago

xiongmao86 commented 4 years ago

I have a laptop try ubuntu system. The drivers are not fit. And now I am trying to uninstall it, the tutorial says assign efi partition a driver name and remove the ubuntu directory, and then I can remove the whole ext partition. I am wondering do I need to do additional steps to remove mok? I have try to search on net, but answers are vague, and I didn't find docs about mok.

lcp commented 4 years ago

It depends. If you're sure that those keys in MokList won't be used afterward, you can type "mokutil --reset" to clear all keys in MokList. Or furthermore, reset the firmware if you want an absolutely clean environment.

xiongmao86 commented 4 years ago

Thank you for your help, @lcp, so installing ubuntu with third-party property driver actually change uefi bios firmware? I do want to change the firmware back if possible, I search mokutil reset firmware on cn.bing.com but I don't get relevant answer, do I use wrong keyword?

xiongmao86 commented 4 years ago

Is it possible to damage bios functioning when I am resetting the uefi firmware, and what is the result of left it unchanged?

lcp commented 4 years ago

If you want to reset the firmware, you have to enter the UEFI firmware UI and search for the option like "Reset to factory settings", and this is nothing to do with mokutil. "mokutil --reset" just notifies MokManager.efi to clear the MokList variable stored in NVRAM.

In general, doing a factory reset won't damage your BIOS but clear up your current settings. You may need to tweak your BIOS after a factory reset.

xiongmao86 commented 4 years ago

Thank you very much for your help @lcp, I have no other questions.