LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2023, 11:20 AM   #1
openbsd98324
Member
 
Registered: Feb 2022
Posts: 72

Rep: Reputation: 5
[Guide] How to enroll your Linux kernel to the EFI Protected BIOS ? ("error: bad shim signature")


Hello,

The common issue with dualboot windows + ubuntu:

"error: bad shim signature"

At (hd0,gpt4) linux /boot/vm... error: bad shim signature.
... so you just need to enroll your hash of vmlinuz linux kernel into the machine
then, boot a linux, that works and do: mokutil --reset
enter pass for instance : user
Code:
apt-get install pesign
Steps to Enroll the Kernel Linux:
1. Enroll the hash of kernel image (the kernel image needs to decompressed first otherwise pesign can't recognize the hash) using
mokutil:
here we go :
Code:
 mokutil --import-hash $( pesign -P -h -i vmlinuz-5.19.0-26-generic | cut -f 2 -d ' ')
The command
Code:
 dmesg | grep MOK
shows the MOK variable.

2. Reboot and continue the hash enrollment in MOKManager
3. Try to boot the kernel

DMESG to check that your modules are all there.
ip addr and wifi is there

--
https://packages.ubuntu.com/jammy/amd64/pesign/filelist

f55229e9a22088ecfb751f359880cbd9 /boot/vmlinuz-4.9.0-11-amd64
e48935cc38ba4b74d1b80f91d61f7396 /boot/vmlinuz-5.19.0-21-generic
f7f09afba00c5b215f24e2a98e568f7b /boot/vmlinuz-5.19.0-26-generic
eb6eb210c22a9fc6a9033322cc5050c6 /boot/vmlinuz-5.19.0-46-generic
81ec667774bc600e79958d8a26e6a1af /boot/vmlinuz-6.2.0-26-generic
badb80ea6814bf13e255b3729e3890fd /boot/vmlinuz-6.2.0-33-generic
83203d2c2621a0b75a979b1ac027fac1 /boot/vmlinuz-6.2.0-37-generic
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2023-11-26 18-27-36.jpg
Views:	23
Size:	158.2 KB
ID:	42115  

Last edited by openbsd98324; 11-26-2023 at 11:28 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Kernel and Shim install jumboshrimp Linux - Newbie 0 10-14-2023 05:44 PM
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
boot-repair fails with mysertious shim-signed error kekie Linux - Software 3 09-27-2018 05:17 PM
boot efi disk with without a non-efi bios pc... masavini Programming 1 11-12-2013 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration