Git Product home page Git Product logo

Comments (7)

nikstur avatar nikstur commented on June 16, 2024

Do you get this message when you call sbctl verify? The kernel is not supposed to be signed because it could otherwise be used by a sort of downgrade attack where someone with access to your disks could add a systemd-boot type 1 entry and just boot your separately signed kernel.

In short: it is expected that the kernel is not signed. sbctl, however has no way of knowing that we're still booting securely.

from lanzaboote.

bd-g avatar bd-g commented on June 16, 2024

Do you get this message when you call sbctl verify? The kernel is not supposed to be signed because it could otherwise be used by a sort of downgrade attack where someone with access to your disks could add a systemd-boot type 1 entry and just boot your separately signed kernel.

In short: it is expected that the kernel is not signed. sbctl, however has no way of knowing that we're still booting securely.

Which is why I was surprised - it wasn't signed on my other machine either, and it was fine. But this machine, when I enable secure boot, it fails to boot with a message (not the above exactly just something like it, but specifically mentioning the bzImage) saying that piece isn't signed properly, the message highlighted in red.

from lanzaboote.

nikstur avatar nikstur commented on June 16, 2024

Can you check if you have any old entries in /boot/loader/entries?

from lanzaboote.

bd-g avatar bd-g commented on June 16, 2024

I found the issue. My ESP partition was corrupted, I fixed it and redid everything and it resolved it!

from lanzaboote.

nikstur avatar nikstur commented on June 16, 2024

Awesome! We actually had a similar situation recently where the ESP was corrupt and systemd-boot just showed no entries because all the kernels and initrds vanished. This would be solved if NixOS would use systemd's automounts where fsck is run on each access. Maybe we just need to add a fsck to lzbt or at least mention it in the docs.

Edit: Awesome that you fixed it, not that the ESP was corrupted :D

from lanzaboote.

RaitoBezarius avatar RaitoBezarius commented on June 16, 2024

We really need to add lzbt fsck yes

from lanzaboote.

RaitoBezarius avatar RaitoBezarius commented on June 16, 2024

We actually had a similar situation recently where the ESP was corrupt and systemd-boot just showed no entries because all the kernels and initrds vanished.

I said that USB keys were not an appropriate medium for NixOS systems :DDDDDDD
FAT32 on USB keys on non-live systems := let's test how non-journaled systems fail in horrible ways :)

from lanzaboote.

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.