hmmm since I'll be using #debootstrap anyway, I might as well use systemd-boot instead of grub β¦ π€
hmmm since I'll be using #debootstrap anyway, I might as well use systemd-boot instead of grub β¦ π€
@scy @dunkelstern Wait, how so, is there a pre-signed GRUB? sd-boot should also work with shim if you are referring to that, though I never tried it.
Self-signing is advantageous (in your case) though, as that is probably the only way you can verify your initramfs as well?
@gd2 @dunkelstern Yes, according to https://wiki.debian.org/SecureBoot#Supported_architectures_and_packages Debian comes with pre-signed GRUB and kernel, shim is also available.
I'm kind of a noob when it comes to how SB works, but the way I understand it, since sd-boot only works with UKIs, I need to combine Debian's signed kernel and initramfs into a UKI and thus self-sign anyway.
@scy @dunkelstern Ah sorry, then I skipped a lot of steps in my initial reply.
So from the wiki page, only shim is signed by Microsoft, the others (including GRUB) are signed by Debian, which tracks with what I know. So the Microsoft signed shim is required if you want to use SB but not roll your own keys, as most consumer hardware has only the Microsoft CA installed and not the Debian one. Instead, shim contains the Debian CA and then verifies the Debian signed GRUB, I believe. [1/3]
@scy @dunkelstern I believe shim also allows you to upload your own CA of sorts to sign things, so you have two ways of rolling your own keys, directly with the firmware (the only way I have done so far) or with shim.
sd-boot doesn't only work with UKIs, it still supports kernel + initramfs! This also works with SB, but then only the kernel is verified, so if you only sign the kernel (as Debian does) you have a weaker form of protection, the initrd can be modified. [2/3]
@scy @dunkelstern Having shim load sd-boot seems to work, but it is kind of a hack as you have to rename sd-boot to "grubx64.efi" because that is what shim expects. So it is doable but probably requires some manual attention on upgrades.
There is a different problem though: I don't see sd-boot in the list of Debian signed packages. So the shim won't actually verify sd-boot unless you sign it and upload your key to the shim, at which point you are kind of rolling your own keys anyway... [3/3]