LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   vmlinuz-4.20.12-lfs-8.4 does not have a valid signature (https://www.linuxquestions.org/questions/linux-from-scratch-13/vmlinuz-4-20-12-lfs-8-4-does-not-have-a-valid-signature-4175652216/)

jugalM 04-15-2019 09:33 PM

vmlinuz-4.20.12-lfs-8.4 does not have a valid signature
 
I was following chapters LFS book 8.4 and have successfully completed till chapter 7 without any errors, all compilation was successful.
Host System is Ubuntu 18.04 with grub v2.02-2ubuntu8.13. sda9 is the boot partition with ext2, sda10 is the root partition with ext4. I have created a swap space (sda11) but I dont think that'll matter for now. I followed the chapter 8.3, and completed it without any errors. sda10 is mounted on $LFS, and sda9 is mounted on $LFS/boot. I Did not want to overwrite grub so i made an entry in the grub.cfg following this link : linuxquestions.org which is working fine. :
Code:

menuentry "LFS on (/dev/sda10)" {
        insmod ext2
        gfxpayload=1280x1024x32,1280x1024
        set root='(hd0,9)'
        linux  /vmlinuz-4.20.12-lfs-8.4 root=/dev/sda10 ro single
}

The Only problem is that the while choosign the LFS option the message is
Code:

vmlinuz-4.20.12-lfs-8.4 has an invalid signature
I previously compiled the linux package 3 times, again and again but to no avail.
Thanks in advance.

Keith Hedger 04-30-2019 05:21 AM

Could this be related to secure boot? Can you turn off secure boot?

drillsar 04-30-2019 10:55 AM

do you have UEFI? That error is usually caused by bios secure boot. However, can be because UEFI in your bios. See if you can disable secure boot in bios or to see if your host booted into UEFI.

Now if you want grub with UEFI than go and check this hint:

http://lists.linuxfromscratch.org/pi...ch/003331.html


First thing to check if your host booted to UEFI is run this command:

Code:

ls /sys/firmware/efi
If this directory exists and is populated, the host booted in EFI Mode. That is most likely your problem.

If you don't want UEFI you can disable it in BIOS.

Grub is not needed if you have UEFI that is the purpose of it; UEFI is it's own bootloader.

You only need efibootmgr, popt, dosfstools, pciutils and efivars; Install those with the link provided above.

look at my thread:

https://www.linuxquestions.org/quest...es-4175652910/

jugalM 05-03-2019 07:36 AM

I am sorry I had secure boot enabled in bios options. I disabled it and it works fine now.


All times are GMT -5. The time now is 08:41 PM.