I have been following the LFS book 11.2-systemd edition. I have configured everything well but I am stuck on the booting step. I first configured the kernel according to the book by enabling/disabling all the required config options. I also built in the
and all other virtio drivers into the kernel itself, added SATA,
as well as
drivers into the kernel. But I cannot seem to boot into the system.
I get the text
Code:
No EFI environment detected early console in extract_kernel
which is correct since I am working on an MBR based VM. It then goes on to show
Code:
Decompressing Linux...Parsing ELF...Performing relocations...done. Booting the kernel
which is also correct. Then I get a lot of DMESG messages which are not errors, just normal DMESG output which is also correct but then it stops there. I obviously cannot scroll anything.
I am using an Endeavour OS Live ISO so I tried copying its
to the LFS directory and tried disabling initramfs support and building in the kernel drivers but I have been unsuccessful so far. The kernel builds fine after disabling
Code:
CONFIG_BLK_DEV_INITRD
and other related options but on booting, the kernel still complains that it cannot mount the root fs which means that its still searching for an initramfs.
I have no idea if systemd is starting or not because I cannot scroll past the DMESG output but there is no error that init not found.
What am I missing? Any help in the right direction would be appreciated!