Building LFS - but where?

Hi guys,
I’m looking for a base to build LFS on (Linux from Scratch).
I have following questions:

  • What distro do you recommend?
  • On a live or permanent install/ISO?
  • Where to build, VirtualBox or physical?
    Thanks.
2 Likes

What distro do you recommend? I only use the live Gentoo ISO!!!

On a live or permanent install/ISO? This covers a lot of territory and the machine you are using to install LFS on had better have at 8GB ram and a i7 or equivalent or you will never get through the base LFS compilation.

Where to build, VirtualBox or physical? In my opinion, LFS and VirtualBox, do not play well together, it can be accomplished, but it is not easy!!! LFS on bare-metal, is a lot eaiser, but still time consuming, diffently, requires another PC for ssh.

1 Like

I have not done it, but LFS and virt-manager may work better.
Virt-manager tends to be less troublesome in Linux than Vbox. Vbox works best in Windows.

1 Like

@nevj

Am not using Vbox in Linux, am using Vbox in W11!!! Have LFS SysV booting with Vbox am now compiling LLVM and Mesa. LLvm compiles right at 4000 cmake CXX files, it takes a little time!!!

2 Likes

Yeah, you know what you are doing.
The thing about Vbox is, it was designed for Windows and it works better in Win than in Linux.
Virt-manager was designed for Linux.

I wonder if we could develop a BSD-from-scratch? There is a challenge.

1 Like

Oh, another important aspect - the Init. Which one to build? SysV or SysD one? And devel or stable-LFS?

1 Like

@George1

I have tried both but after the base compile, SysV just seems to work better in BLFS!!!

1 Like

Good! Does it have i.e. systemctl or where do I do configs?

1 Like

None of those. Go for something modern.

1 Like

Here is my LFS!!!

2 Likes

What do you mean?

1 Like

No Systemd in SysV!!!

1 Like

I mean that sysV is an old init system with issues. Systemd replaced it , so systemd is better in some ways
but
Today there are newer init systems than systemd, and they are better again and should replace it.

IMHO the best init system today for home computers is dinit, followed by OpenRC. The best init system for servers is S6-66. S6-66 can do everything systemd does, without all the unwanted addons.

So if you are going to build LFS, use one of those.
You might have to source it from outside of LFS , but that is possible.

1 Like

@nevj

SysV is more stable than Systemd for LFS and one will run into more issues with Systemd!!! You might as well build Gentoo, if you build LFS with OpenRC.

1 Like

Build it with dinit. That would be a new achievement

2 Likes

Compiling LLVM “[1124/8869] Building CXX objects”

Using Clang to compile LLVM with the “llvm-project” from git-hub!!!

To many errors when using GCC and CXX++!!!

2 Likes

Warnings or real errors?

1 Like

I might try it, but problems are, the LFS book is fully optimised for either SysD or SysV.

1 Like

That‘s not a problem, I can manage to get one, I think I have a portable Windows SSD, but need to check.

1 Like

Oh yeah, you are getting off the main track if you try to use dinit.
I have never done a dinit install in a distro thst did not have it … I did do an S6 install once, with guidance.

1 Like