So, I've installed Manjaro quite while ago, and I let secure boot disabled during installation. Dang! Is there a way to keep (most of) my system and enable secure boot and LUKS after the fact?
It depends on a single variable - does your motherboard support manipulating the secure boot keys? I've only done it on prebuilt dells and dell laptops, but some other manufacturers also allow it.
The procedure is very simple, but has many steps. Don't get discouraged! I remember ArchWiki having a very thorough guide that worked for me.
The gist of it is you provide UEFI firmware the cert to trust and then use the keys to sign your kernel image. I've never had to deal with signing the modules (mostly nVidia related, I think), but the procedure would be the same.
I have since replaced the hardcoded values with variables, but evidently haven't pushed the changes to gitlab. Having said that - not having variables might make it easier to understand in this case.
I think, I can install keys in my AMI bios. So, basically, I'd create some keys, sign the kernel with it, reboot, install them keys in UEFI, enable secure boot, and, fingers crossed, I'd boot?
You might have to enable Audit mode or similar - again, depends on the manufacturer - to generate the keys. But yes, essentially that's the gist of it.