Giter Club home page Giter Club logo

Comments (5)

lcp avatar lcp commented on August 18, 2024

mokutil --import-hash kernel_hash

from shim.

StevenDoesStuffs avatar StevenDoesStuffs commented on August 18, 2024

@lcp Unfortunately, that requires the computer to be booted.
My situation: I'm trying to get a USB to boot on secure boot enabled devices with the Microsoft key. I have an encrypted boot partition, so MokManager won't be able to see it. My attempts at using keys and signatures result in the error "Bootloader has not verified loaded image. System is compromised." Both the bootloader (grub) and the Linux kernel are signed with the key enrolled. The bootloader always loads, but it appears that Linux doesn't. I verified that this is not the fault of encryption by testing it on a non encrypted system. I tried hashes, and they worked, but they require an updated version of the kernel in a place where MokManager can access it at all times (can't do this because it eliminates the purpose of an encrypted boot partition) because enrolled hashes or signatures don't transfer from computer to computer. So now, I have a hash in the EFI partition of the kernel, and I it would be great if I were able to use that or get keys to work.

Thank you, I know this is quite a specific situation.

from shim.

lcp avatar lcp commented on August 18, 2024

That sounds strange to me. For SUSE/openSUSE, we also put grub.efi in ESP and keep the kernel in the encrypted partition. Wonder why your signature couldn't be verified.

from shim.

StevenDoesStuffs avatar StevenDoesStuffs commented on August 18, 2024

@lcp Do you have any tips on how to solve this proiblem or a solution?

from shim.

lcp avatar lcp commented on August 18, 2024

Could you reproduce the issue with OVMF? It's easier to debug shim in a virtual machine. At least you can attach gdb to shim to get more information.

from shim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.