Some time ago I have installed Ubuntu 22.04 and installed proprietary nvidia drivers on it. That triggered creation of the new MOK (Machine Owner Key). In a meantime I have decided to reinstall the whole system as I wanted to do dual-boot.
So I did the following:
- Secure Erase (Data Wipe) the SSD via UEFI
- Reinstall Ubuntu 22.04 in dual-boot
I know that those actions have no impact on Secure Boot Keys (PK, KEK, DB, DBX) as they are stored in the Firmware. However, I am not so sure about MOK and cannot find explicit answer by checking related questions like: Security boot and mok password or What exactly is MOK in Linux for?. I only found that MOK are stored in the database of shim (source: https://manpages.ubuntu.com/manpages/bionic/man1/mokutil.1.html).
The Question is: Are MOKs (Machine Owner Key) deleted after OS reinstall or Secure Erase (Data Wipe) on BIOS/UEFI level?