Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have finished the LFS book and am looking for help as my system is not bootable. When trying to boot into my LFS build, Welcome to GRUB flashes in the corner of the screen then my computer restarts. I have built off of Fedora. I originally had grub.cfg using designators like the book shows in its example file for setting the root location, but after the boot failed I changed to using the UUID and PARTUUID and the boot still failed.
I then tried to add LFS to the GRUB menu that Fedora is booting from but I can't get that to work either. The LFS system shows up when running os-prober. I can provide any other information, any help would be great.
The grub.cfg file is is script generated I didn't try to add lfs to it manually, because I don't know how to do it. Here's the grub.cfg file for the LFS system that I created, it didn't boot off of this either.
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
search --set=root --fs-uuid d90b5ed0-cb11-42b5-a362-1ed92bd07f62
menuentry "GNU/Linux, Linux 6.1.11-lfs-11.3" {
linux /vmlinuz-6.1.11-lfs-11.3.x86_64 root=PARTUUID=89896895-22eb-c149-8910-6cfb63c6dee7 ro
}
Remove the bios-grub flag on /dev/sdb1, The bios-grub flag is used by grub when installing grub in legacy mode on a gpt drive.
In fedora create a /boot/grub2/custom.cfg with this in it:
Code:
menuentry "GNU/Linux, Linux 6.1.11-lfs-11.3" {
insmod all_video
insmod ext2
search --set=root --fs-uuid d90b5ed0-cb11-42b5-a362-1ed92bd07f62
linux /vmlinuz-6.1.11-lfs-11.3.x86_64 root=PARTUUID=89896895-22eb-c149-8910-6cfb63c6dee7 ro
}
This should give a working lfs grub menuentry at the end of the fedora grub menu.
assuming the search --set=root uuid is that of /dev/sdb1
Last edited by colorpurple21859; 07-18-2023 at 10:29 PM.
Remove the bios-grub flag on /dev/sdb1, The bios-grub flag is used by grub when installing grub in legacy mode on a gpt drive.
In fedora create a /boot/grub2/custom.cfg with this in it:
Code:
menuentry "GNU/Linux, Linux 6.1.11-lfs-11.3" {
insmod all_video
insmod ext2
search --set=root --fs-uuid d90b5ed0-cb11-42b5-a362-1ed92bd07f62
linux /vmlinuz-6.1.11-lfs-11.3.x86_64 root=PARTUUID=89896895-22eb-c149-8910-6cfb63c6dee7 ro
}
This should give a working lfs grub menuentry at the end of the fedora grub menu.
assuming the search --set=root uuid is that of /dev/sdb1
This worked! I've some error codes on boot now but it gets to the bash prompt. Thank you
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.