Problem explanation:
Hey there, I have a serious problem building LFS everytime EFI/Legacy, doesn't matter, my LFS doesn't boot at all!, I mean after setting up grub to boot the kernel, nothing changes, screen remains on its own (grub screen), I just saw some disk activity light blinking for around 6/7 seconds, then nothing, literally nothing, I've tried to wait utill maybe something happens, nothing happened, disk activity remains inactive, no errors, screen shows grub loading Linux..., and of course system was not responsible to any inputs, even the power button, I should press it down for full 3 seconds to turn it off.
OK let me show you how I built LFS and grub, first of all I haven't got any unexpected build errors and tried to build packages and test them carefully one by one, until I reached GRUB, I haven't built grub using what LFS said, I built grub after installing efivar and efibootmgr, and after that I tried to use
Code:
grub-install /dev/sdb
(sdb is my host disk on ubuntu live cd), but grub was asking me for efi directory which I passed in as an argument
Code:
--efi-directory=/mnt/efi
after mounting /dev/sdb4 to /mnt/efi, I listed files inside and I'm sure that's the correct partition, so I made my own grub.cfg file based on LFS tutorial and set it up, so I rebooted and tried to boot after pressing enter and yes, as I said at first, nothing happened, I checked kernel build config file and verified
, so still got no luck, I tried to use grub-mkconfig utility to overwrite my grub.cfg file, so I did, rebooted and tried to boot, but still no lock, same thing?
My questions:
1. What should be the cause of this issue?, because I remember the last time I tried to build LFS inside QEMU using Legacy and exact tutorial, I got the exact same situation.
2. Am I missing an option of something to debug kernel boot? Maybe there is a kernel panic that I am aware of.
3. Can it be fixed?
Thank you so much, any help appreciated!