You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can boot the system if I enroll the hash of my efi stub (selecting GRUBX64.EFI), but shim says the system is compromised when i enroll its certificate.
Error message on boot:
EFI stub: UEFI Secure Boot is enabled.
Bootloader has not verified loaded image.
System is compromised. halting.
Version: shim-15.8-3 extracted from Fedora rpm.
Compiling Linux 6.9.7 (Buildroot) with EFI_STUB=y. Outputs bzImage.
Adding SBAT using script from #376 (comment): pe-add-sections.py -s .sbat sbat.csv -z .sbat -i bzImage -o bzImage.sbat where sbat.csv:
Got it. There seem to be a special case for hash-enrolled stuff. Creating the image with ukify worked - almost - like a charm. Now I just need to deal with the warning: "Overlapping PE sections detected. Boot may fail due to image memory corruption!".
Edit: And that was solved by using the latest linuxx64.efi.stub. Now everything works!
I can boot the system if I enroll the hash of my efi stub (selecting GRUBX64.EFI), but shim says the system is compromised when i enroll its certificate.
Error message on boot:
Version: shim-15.8-3 extracted from Fedora rpm.
Compiling Linux 6.9.7 (Buildroot) with EFI_STUB=y. Outputs bzImage.
Adding SBAT using script from #376 (comment):
pe-add-sections.py -s .sbat sbat.csv -z .sbat -i bzImage -o bzImage.sbat
where sbat.csv:Signing:
Then using genimage (https://github.com/pengutronix/genimage) to create img:
genimage -c genimage.cfg # Outputs disk.img
I have verified that GRUBX64.EFI isn't changed by genimage with
sbverify --cert mok.pem GRUBX64.EFI
Tested by writing to USB (dd ...) and booting on Surface Go 2, and in the following vm, with the same results:
I have tried signing with pesign, but it didn't make a difference:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: