Linux from Scratch

(linuxfromscratch.org)

36 points | by sippingabonedry 1 hour ago

9 comments

  • rando103747202 19 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.

    • r3trohack3r 14 minutes ago
      I liked KISS for this

      It was like automated LFS from git

      FreeBSD’s Makefile system is also in this ballpark

    • gigatexal 10 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

  • lukeify 34 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.
    • boomlinde 5 minutes ago
      Took me half a second to realize I would probably start with "LFS :: Linux From Scratch is the main book, the base from which all other projects are derived."
    • partyficial 8 minutes ago
      it's like their brain is unaware of the concept of a timeline
    • khantto 25 minutes ago
      [dead]
  • haunter 5 minutes ago
    The last release of the no longer maintained sysvinit version is here (the default is systemd now) https://www.linuxfromscratch.org/lfs/downloads/12.4/
  • lioeters 6 minutes ago
    List of (not all Linux) distributions that can be bootstrapped from source:

    https://github.com/vasi/bootstrappable-distros

  • bmenrigh 22 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.
  • aboardRat4 29 minutes ago
    What's the news? This manual has been with us since forever.
    • steve-atx-7600 28 minutes ago
      I'm glad to see its still being maintained after more than 25 years since I last used it.
  • Celeo 41 minutes ago
    From the news page:

    > Bruce Dubbs - 2026/09/01

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

  • lrvick 33 minutes ago
    We did that, but in containers. https://stagex.tools/
  • halyconWays 35 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