Back

Linux from Scratch

34 points2 hourslinuxfromscratch.org
rando10374720213 minutes ago

LFS takes the wrong approach in my opinion. I did it once manually over a couple of days. I suppose I hoped enduring the pain of waiting for the packages to compile would somehow make me smarter. It didn’t. I didn’t learn much. It was like following a baking recipe. I know I need to add eggs and sugar in the ratio it says but I’d be damned if I could tell you why that specific ratio works.

It’s just too much to take in at once. You start by building a cross compilation toolchain but… why? And you add the bootloader dead last, even though it’s the first thing you see when you boot a Linux machine?

I reckon a better approach would be to build it step by step, only adding new things once you’ve discovered a need for them. First you get the bootloader working, then you get it to actually load the initramfs and kernel, etc… you could even create your own extremely simple initramfs first before adding dracut, etc…

This gets you to a system you can boot and play with asap. And then you can slowly start to discover why you actually need all these things through exploration and experimentation.

gigatexal4 minutes ago

Compiling the packages doesn’t teach much it’s all the glue in between. No? It’s the startup scripts and the configs and creating a kernel and all the things.

It’s on my list of things to do when I have some free time

r3trohack3r8 minutes ago

I liked KISS for this

It was like automated LFS from git

FreeBSD’s Makefile system is also in this ballpark

lukeify28 minutes ago

You can tell it's written by real Linux users because the landing page UX doesn't make it immediately obvious where to even start reading.

khantto19 minutes ago

[dead]

bmenrigh16 minutes ago

For a long time (probably 2002-2010) I really wanted to do LFS. But I've been on Gentoo since 2004 which, over the last ~22 years, has probably exposed me to almost everything LFS would have, plus a lot more it wouldn't have. I still wish I'd did it way back when. I probably would stumbled through fewer issues had I.

aboardRat423 minutes ago

What's the news? This manual has been with us since forever.

steve-atx-760022 minutes ago

I'm glad to see its still being maintained after more than 25 years since I last used it.

Celeo35 minutes ago

From the news page:

> Bruce Dubbs - 2026/09/01

> The Linux From Scratch community announces the release of LFS Version 13.1.

lrvick27 minutes ago

We did that, but in containers. https://stagex.tools/

halyconWays29 minutes ago

I did LFS once, a long long time ago (days of RedHat 7.3, I'd say, 2002), and it was quite educational! It's a good way to learn the fundamentals of what comprises an actual Linux system