r/linuxfromscratch • u/ConversationOdd4020 • Jul 14 '26
Help out a fellow lfs user
So i was around halfway through blfs, dealing with the audio drivers and i ran into many issues, like my physical sound card not being detected despite having looked through all the audio settings have enabling ones i need so after 2 recompilations, i decided to grab my config.gz from arch and use it which somehow miraculously still didn't work but I made the stupid mistake of not backing up my previous kernel image and completely overwriting it. Now it's stuck at a black screen and can't even get past grub so would some please kindly share their config.gz. TLDR i fucked up my kernel and i'm asking for someone else's config.gz
2
u/Due-Celery4326 Jul 14 '26
Use Arch as the host, enter chroot and generate a new configuration using
make defconfigandmake menuconfig. Enable what you need from your hardware. Alternatively, you can usemake localmodconfig, which creates an optimized and ultra-lightweight configuration based only on the hardware modules your system is using at the exact moment of execution. Therefore, you have to plug and play all your hardware for the kernel in use to load everything and forlocalmodconfigto use it.7
u/Affectionate-Bit6525 Jul 14 '26
I was about 90% through my first LFS build when I tried to delete a temporary library folder that I’d pulled down. One
rm -rf /liblater and I was staring at an empty cursor. Needless to say I had to go back and start from scratch. It goes quicker the second time through. Good luck.3
u/No-Ring-3013 Jul 14 '26
If it's only the kernel issue, that would be an easy fix. Start with make defconfig and adjust settings to your own needs. Also, check the kernel configuration section on the LFS handbook