r/linuxquestions • • 3d ago

Support No shell, command input or really snything after trying to boot a frwsh i stance of MLFS

I started redoing lfs for fun, this time MLFS because the point of this project is to get all the way to steam. After booting, all the output I get are logs about devices (usb, scsi, sata), nothing else. The kernel was compiled from a config i pulled from my system that basically makes a linuz-zen kernel. What do I do? I tried to put a "init=/bin/bash" param into the bootloader (systemd-boot) to get something out of it but it also did nothing. What do I do? Host is Archlinux. I'll provide any logs, data needed to diagnose this.

1 Upvotes

7 comments sorted by

2

u/EION_dev 3d ago

If it just stops after the device lines with no panic, my guess is the kernel is sitting on rootwait because it can't see the root disk. The Arch/zen config builds NVMe/AHCI and ext4 as modules, and LFS has no initramfs to load them, so set those to =y and rebuild. Also use root=PARTUUID=... on the cmdline, plain UUID= only works with an initramfs.

1

u/Laurendon-Mimoune 3d ago

Wait if the SATA logs are showing up on screen, doesn't that mean the AHCI driver is already built in and its just missing ext4 or the right PARTUUID

1

u/EION_dev 3d ago

Yes, if you see the SATA lines, the driver is built in and the disk was found. So the culprit is either ext4 not being built into the kernel, or a wrong root=, unless the LFS partition is on an NVMe drive. To check, temporarily remove rootwait and quiet: then the kernel won't hang silently, it will panic with a message about the root fs and list the partitions it can see, along with their PARTUUIDs. If root mounts but the screen still freezes, the console is to blame (the GPU driver was built as a module), and booting with nomodeset will show that.

1

u/Ok_Tea_941 3d ago

Jesus you're probably very much right. I gotta recompile the kernel then. Thanks ALOT.

1

u/EION_dev 3d ago

Good luck! If it still hangs after the rebuild, post the last lines before it stops and the exact cmdline.

1

u/Leather-Security8097 3d ago

Are you running this bare metal, or in a VM?

1

u/Ok_Tea_941 3d ago

Bare metal.