r/linuxfromscratch • u/Wooden_Grade_7580 • Aug 27 '24
[Help] LFS not booting properly.
So, when i try to boot my lfs, it just stay like this, i can't write anything and i've tried fixing the kernel multiple times, i don't know if it is the /boot/efi partition that doesn't mount automatically or if is the kernel or grub config. Since my disk names (sdx) are changing everytime i restart, i used uuids:




If anyone could help me, i'm stuck in this problem for weeks. This is the screen i get when i try booting.

3
Upvotes
4
u/drunkenblueberry Aug 28 '24
Another issue: you have
insmod ext2in your grub config. Essentially, this loads the ext2 "drivers". But your root filesystem is ext4, not ext2. So try replacing this withinsmod ext4instead.I had made this mistake myself when I did LFS several years ago.
2
u/Zeckmathederg Aug 29 '24 edited Aug 29 '24
To make sure this is not an issue with anything else, you could try making a new GRUB config using
grub-mkconfig -o /boot/grub/grub.cfg(this will overwrite the old grub.cfg so back it up)In the past, even on LFS, it has been what I've done until recently and by all means it works well enough. make sure $PATH is /usr/bin:/usr/sbin and that the efivarfs is mounted properly. Then you may reboot and see if that does anything. If it still fails with
Inappropriate ioctl for device+no job control in this shellthen something else is wrong, maybe with the kernel or init system not having the proper files necessary. Another issue may be with the added kernel parameterconsole=tty1. From what I have been reading, the console may be the issue. I could of course be wrong.If the automatically generated grub.cfg file worked, then you can continue using it or go back to the drawing board and find out what's wrong. Here is my grub.cfg file for reference:
4
u/drunkenblueberry Aug 27 '24
In your grub config, you have set the
rokernel parameter. This mounts the root file system as read-only. That's why you are unable to write. Try changingrotorw, to mount it with read-write access.