Live data from Hacker News

Show HN: Build your Linux from Scratch inside Docker with one command

github.com

11–20 of 30 posts

Re: Show HN: Build your Linux from Scratch inside Docker with one command

#11

This idea is interesting. I recently started a LFS project but quickly ran into I am traveling a lot right now. Any thoughts on using a virtual machine to practice while I travel? VMWare Fusion?

I don't see why this wouldn't work?

Re: Show HN: Build your Linux from Scratch inside Docker with one command

#12

Seems to defeat the purpose of 'from scratch' if all you do is run a script. I fondly remember building linux from scratch in the early 00's and learning quite a bit about how a system is put together by doing (and troubleshooting) the steps. IIRC bootstrapping the compiler was the trickiest bit since the fedora (or maybe it was still redhat back then) gcc didn't like to play nice with its younger siblings.

What's the difference between writing x commands and hitting enter once, vs writing x commands and waiting for each command to finish? This is a good starting point for people who already know Linux and want a lean self-built system.

I don't really get what's different compared to using something like `from debian:jessie`. In what ways is this more lean?

Re: Show HN: Build your Linux from Scratch inside Docker with one command

#13

First thought was the website http://www.linuxfromscratch.org/ and book. Edit: low and behold under "License"... "This work is based on instructions from Linux from Scratch project and provided with MIT license."

My first thought was this old chestnut http://bash.org/?464385

Re: Show HN: Build your Linux from Scratch inside Docker with one command

#14

Seems to defeat the purpose of 'from scratch' if all you do is run a script. I fondly remember building linux from scratch in the early 00's and learning quite a bit about how a system is put together by doing (and troubleshooting) the steps. IIRC bootstrapping the compiler was the trickiest bit since the fedora (or maybe it was still redhat back then) gcc didn't like to play nice with its younger siblings.

And these days looking at the LFS books makes one wonder how much crap/complications Freedesktop has crammed into the middle layer in the name of DE userfriendliness....

Re: Show HN: Build your Linux from Scratch inside Docker with one command

#16

Seems to defeat the purpose of 'from scratch' if all you do is run a script. I fondly remember building linux from scratch in the early 00's and learning quite a bit about how a system is put together by doing (and troubleshooting) the steps. IIRC bootstrapping the compiler was the trickiest bit since the fedora (or maybe it was still redhat back then) gcc didn't like to play nice with its younger siblings.

What's the difference between writing x commands and hitting enter once, vs writing x commands and waiting for each command to finish? This is a good starting point for people who already know Linux and want a lean self-built system.

The secret assumption is that things will break and the builder will learn how things might break and how to fix them.

I've had a lot of fun with LFS, but if everything goes smoothly it is a bit pointless. When builds broke or I missed components there was an opportunity to better my understanding of the system. Experience with multiple failure modes in a safe environment - it counts for a lot.

It also forces you to learn what the dependency graph looks like and a little bit of why, which can be helpful.

Re: Show HN: Build your Linux from Scratch inside Docker with one command

#17
Why are the docs at linuxfromscratch.org still based on 4.12 instead of 4.14? Have they just not gotten around to updating, or is 4.12 considered more widely accepted?

I want to deep dive into building Linux from scratch (step by step, not via a magic script) to get intimately familiar with the OS, but wonder if I ought to invest my time in a more recent version.

Re: Show HN: Build your Linux from Scratch inside Docker with one command

#19

Why are the docs at linuxfromscratch.org still based on 4.12 instead of 4.14? Have they just not gotten around to updating, or is 4.12 considered more widely accepted? I want to deep dive into building Linux from scratch (step by step, not via a magic script) to get intimately familiar with the OS, but wonder if I ought to invest my time in a more recent version.

You are talking about kernel versions?

Version 4.12 was from July 2017 until September 2017 (0)

Right now the main line kernel is at 4.14, but it has not changed so much that it really matters for learning Linux.

[0] https://en.wikipedia.org/wiki/Linux_kernel#4.x.y_releases

Post reply on HN