LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-15-2019, 09:33 PM   #1
jugalM
LQ Newbie
 
Registered: Apr 2019
Posts: 2

Rep: Reputation: Disabled
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.
 
Old 04-30-2019, 05:21 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Could this be related to secure boot? Can you turn off secure boot?
 
Old 04-30-2019, 10:55 AM   #3
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
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/

Last edited by drillsar; 04-30-2019 at 11:13 AM.
 
Old 05-03-2019, 07:36 AM   #4
jugalM
LQ Newbie
 
Registered: Apr 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
I am sorry I had secure boot enabled in bios options. I disabled it and it works fine now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why both files vmlinuz and vmlinuz-4.xx-something in distro? AlexM202020 Linux From Scratch 4 03-08-2019 03:16 AM
[SOLVED] bash: export: `=': not a valid identifier - bash: export: `0': not a valid identifier PClOStinspace Linux - General 4 01-24-2014 01:11 PM
lilo+ not valid boot signature bingbang Linux - Newbie 9 02-13-2011 07:55 AM
[SOLVED] How to user vmlinuz-generic instead of vmlinuz-huge-smp? cola Slackware 12 09-15-2009 01:54 PM
package does not have valid GPG signature amOrpheus Linux - Newbie 3 01-20-2004 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration