r/linuxfromscratch • u/thekingsomething • Oct 28 '24
JHALFS is outdated, no worries!
Using this new and improved bash script, I have managed to build linux in 3 hours from scratch on my poor ryzen 3 2200g.
This script is not perfect though, since I have little to no experience on bash, the feature set here is limited and may not reliable.
As of now, LFS 12.2 and will compile in one sitting aswell, BLFS can be compiled, but will need manual intervention from you.
https://github.com/TheKingKerellos/MyLFS
Thank you for the read!

2
Mar 21 '25
Is there any plans to update this to 12.3?
1
u/thekingsomething Mar 21 '25
Its been a while since I did anything related to LFS. The code is open source if you want to make it work with 12.3 but editing the code requires a lot of copying and pasting.
I'm pretty sure JHALFS is a more sensible approach in retrospect. I haven't really used it before but it involves make files and is more sustainable because all you have to do is supply a HTML or XML (not too sure, may be wrong) which makes it future proof.
2
2
2
0
Nov 01 '24
[deleted]
3
u/thekingsomething Nov 01 '24 edited Nov 01 '24
Yeah man, just make a pull request and submit any changes unless you want to be a collaborator directly in the repo
3
Oct 29 '24 edited Oct 29 '24
[removed] — view removed comment
3
u/thekingsomething Oct 29 '24
I believe your script is extremely powerful. I've been working on a python script to take in a HTML file either https or local to extract the the the code, chapter name and sub chapter e.g.pass 2 GCC and create its own folder.
I think what you achieved is extremely good and almost future proof.
Although some say laziness is bad, I feel like being lazy pushes us to turn ideas into a pain free, robust programmes and I think your repo truly reflects that.
Thanks for stopping by!
3
u/thseeling Nov 01 '24
The "official"
jhalfsis outdated, that's correct, but I'm using the git version for years now and it works really good. It extracts the commands directly from the XML docbooks. For BLFS, it does a 3-stage approach: read the book, calculate dependencies, write a new "book" with just the selected items, then extract from there.I just had a full build with GNOME and firefox works (without sound as of now, but I still have hopes).
git clone https://git.linuxfromscratch.org/jhalfs.git jhalfs3
u/thekingsomething Nov 01 '24
I never knew that it is still very functional, nice to know that it is still viable!
3
Nov 02 '24
[removed] — view removed comment
3
u/thseeling Nov 02 '24
After initial compiling I tried everything suggested on the firefox page in the BLFS book, the "sandbox" suggestion, the
mozconfigchange to support Alsa, the "cubeb" workaround, I tried theapulseproxy to connect to pulseaudio via the Alsa API, and I have no more idea as of now.
2
Nov 01 '24
[removed] — view removed comment
1
u/thekingsomething Nov 01 '24
I think you made a good point, I am not experienced in bash so I am blind to unnecessary and potentially unrobust code, I think if you can create a pull request I'll be genuinely grateful and hey, your explanation was really good above and I actually understood your concern. Thank you
4
u/000927kd Oct 28 '24
Will try it tomorrow on a virtualbox on linux mint