自编译内核 invalid signature 问题解决

使用自己编译的内核出现如下问题:

error: /vmlinuz-3.10.0 has invalid signature
error: you need to load the kernel first

按 F1 进入 BIOS,关闭 Secure Boot

BIOS
+-> Security
+-> Secure Boot [Disabled]

ref:

​vmlinuz-4.18.12-041812-generic has invalid signature​