Foxboron / sbctl

:computer: :lock: :key: Secure Boot key manager
MIT License
1.35k stars 71 forks source link

Cannot re-enroll keys after upgrading system #292

Closed NomisIV closed 3 months ago

NomisIV commented 3 months ago

I upgraded the CPU in my system, and after booting the computer prompted me to wipe the fTPM. After booting (with secure-boot disabled) I tried enrolling the keys again.

How to reproduce:

I get the following error from the command:

Enrolling keys to EFI variables...
With vendor keys from microsoft...✗
sbctl requires root to run: couldn't sync keys: couldn't write efi variable: write /sys/firmware/efi/efivars/dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656f: permission denied

I have previously had secure boot enabled on this computer (with the old CPU), for which I created and enrolled the keys without any issue. I don't understand why it's not working now.

Foxboron commented 3 months ago

Which version of sbctl is this?

NomisIV commented 3 months ago

Version 0.12

Foxboron commented 3 months ago

Please update to 0.13. sbctl shouldn't be acting on the dbx variable anymore.

NomisIV commented 3 months ago

That seems to have solved my problem! I will try rebooting now :)