"update-secureboot-policy --enroll-key" running on every new startup eating resources
I had same problem and I found a solution, actually it was quite easy.
The problem was that a script was waiting on me to confirm for adding an UEFI entry on my computer but the terminal was not showing up and consuming all ressources (active waiting ?)
Brief
My solution was to run manually the command line, restart the computer and enroll the MOK key.
Complete explication
-
Get the actual command copy-pastable
ps aux | grep -e "update-secureboot-policy"
-
Stop the current process
sudo kill <pid>
-
Run manually the command and follow UEFI instructions
sudo /usr/bin/perl -w /usr/share/debconf/frontend /usr/sbin/update-secureboot-policy --enroll-key
Reboot the computer and in the bios go to "MOK key" management
Enroll the key (see image below)
Finish