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 just finished the latest stable LFS book and my LFS doesn't seem to be booting. I say "seem" because the keyboard appears to be responding (at least the caps lock light turns on or off when I press it) and my boot and dmesg logs seem to say that it's booting (unless I'm wrong about that).
I've attached some of the logs, fstab and my grub config file (I used grub-mkconfig to generate it). I thought maybe there was something wrong with my kernel config so I included that as well.
Let me know if there is anything that I can add or clarify.
Try booting to a Live CD/USB of something and taking a look at the log files, particularly /var/log/boot.log. That may give you some hint as to what is going wrong.
@frankbell, the boot.log from the previous post is the /var/log/boot.log, sorry if I didn't make that clear. Or do you mean the boot.log from the distro on the Live CD/USB?
My boot.log it is always ending with
Code:
Starting kernel log daemon... OK
and there aren't any more messages after that. In my sys.log (from /var/log), I am seeing
message a lot which strange because System.map-5.19.1 is in my /boot directory along with my vmlinuz-5.19.1. I don't think I need a soft link to my System.map file since the book doesn't do that.
Could there be something wrong with my System.map file?
Finally got it to boot and now I'm at the login prompt!
I'm not exactly sure what steps actually solved it but I spent an hour or so going through the lsmod and lspci from my host system, looking for what modules were loaded. So I configured my kernel with those modules, rebuilt the kernel and reinstalled the modules. Then I installed some Linux firmware (like what Arch Linux does) and created an initramfs using a script like from the BLFS book for loading the modules at boot as well as early loading of the microcode.
I wish I knew exactly what solved it but hey, it works now!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.