gdamjan / secure-boot

UEFI SecureBoot for ArchLinux
58 stars 3 forks source link

Question about switching kernels #7

Closed HermannBjorgvin closed 6 years ago

HermannBjorgvin commented 6 years ago

Hello, I wanted to know if there's an easy way to set this up so that I can boot kernel-hardened, or the latest kernel, or the latest stable release.

I would have to somehow sign it with a different kernel three times correct?

gdamjan commented 6 years ago

Hi @HermannBjorgvin, yes, you can sign a different kernel.

the default signs /boot/vmlinuz-linux where linux is the SUFFIX (I wanna change that to KVER though). you can run:

secure-boot SUFFIX=hardened

to sign a /boot/vmlinuz-hardened kernel. Does that work for you?

HermannBjorgvin commented 6 years ago

I'll try my hand at that and update you on if it works. I would need to add another hook for the lts and hardened kernels right?

gdamjan commented 6 years ago

yes, you need a separate hook. there's no way around that currently. theoretically, if Arch moves to the kernel-install method, then it would be possible to setup a hook for that. A pacman hook is suboptimal anyways.

HermannBjorgvin commented 6 years ago

Ok I installed two hooks and changed the suffix parameters to linux-lts and linux-hardened. Didn't need to change anything else. Great tool, thanks for writing it!