Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey guys, i've been working on LFS livecd iso for a while and i wanna share with you guys. This should be good to anyone wanna quick LFS base installed, or wanna use this livecd as host to build LFS. I'm include some extra usefull program like wpa_supplicant, gpm and links if anyone wanna use as host to build LFS. This livecd of LFS is using port system, 'pkgutils' from CRUX (crux.nu) to manage packages. Also this livecd support on UEFI machine. Kernel shipped is generic kernel (LTS), it should work on most hardware and initramfs is required. Kernel config and initramfs generator is taken from Venom Linux (venomlinux.org)
This livecd is follow LFS development book, so packages is updated, and will try to keep it up to date. For now theres is no Xorg yet, only base LFS with some extra usefull packages. I will add more packages soon when i got free time, or anybody interested to contribute packages buildscript, i'm open to it .
For now only multilib iso available, i will add 64bit only iso later, in case someone really need only 64bit iso, consider this is beta release since i'm still work on it. You should try on Virtualbox first to see how it goes. Anyway to convert from multilib to pure64 is simply remove/comment 'MULTILIB=yes' line in /etc/pkgmk.conf then rebuild binutils, glibc and gcc.
To install it, run 'lfs-readme' after login to see the instruction. I will make demo video of this LFS livecd later then shared it here.
Theres a small changes to some LFS base;
- sysvinit - patch to support UEFI
- python3 - use '--without-ensurepip', since pkgutils is used
That's wonderful. If there's anything I can do to help, please let me know.
For now if you can run some test it would be great. I'm very appreciate it. If theres bugs, unclear instruction, missing stuff or anything just report to me, i will look into it
I want you to try install it but if you want to build the whole system its good too. And it would be great if you write build script for it if you know how to write it. All build script for all currently installed packages is in '/usr/ports/core/' dir. You can use it as example to learn.
Hold on! What would be the point of installing LFS? I thought the idea of the CD was to provide a build host plus sources and book for those who don't have a suitable host already. That's what the old LFS CD used to do.
Also doing a build is one thing, scripting it is quite another! My bash skills are nothing like good enough for that.
Its up to you what you wanna do with it. I'm just doing my things and share with you guys. And any opinion is open, i'm glad to hear it.
This livecd should be passed version-check.sh. And tools to download like wget, internet connection like wpa_supplicant and dhcpcd, gpm and links for browse B/LFS website to do copy pasting already included. So it should suitable to use as host.
My todo list for future livecd is include gui tools, Xorg and etc so building B/LFS is more easy.
Nice project, I have done some testing with venom before. I really like pkgutils/ports and think it is useful on an LFS-system as a package manager. Great to see it included and keeping as close to LFS as possible.
You should be able to use NutyX Pkgfiles without much editing. https://github.com/NuTyX/packages-x86_64
I am interested in the pure 64 bit iso.
If I understand correctly, the iso contains a prebuilt LFS-system that will be unsquashed during install to a mountpount. Or the live environment can be used to build it yourself.
Can I rebuild binutils, glibc and gcc after installation from the prebuilt image for a pure 64 bit? And in what order should I do that.
I dd'd the image to a pen drive but I can't boot it. I just get a blank screen with an immobile mouse cursor on it. Is it meant to be a hybrid or is it a pure iso image that needs to be on a disc?
Nice project, I have done some testing with venom before. I really like pkgutils/ports and think it is useful on an LFS-system as a package manager. Great to see it included and keeping as close to LFS as possible.
You should be able to use NutyX Pkgfiles without much editing. https://github.com/NuTyX/packages-x86_64
I am interested in the pure 64 bit iso.
If I understand correctly, the iso contains a prebuilt LFS-system that will be unsquashed during install to a mountpount. Or the live environment can be used to build it yourself.
Can I rebuild binutils, glibc and gcc after installation from the prebuilt image for a pure 64 bit? And in what order should I do that.
Thanks for trying Venom Linux, i created Venom Linux follow B/LFS guide, but now its very far from B/LFS, its independent now.
Yeah, this LFS livecd use pkgutils/ports as package manager which should compatible with NuTyX's ports. I will try to keep this LFS livecd close with LFS as possible.
Yes, the iso contains a prebuilt squashed LFS-system that will unsquash to HDD using 'lfs-install' i wrote.
If you want to convert to pure64, just remove/comment 'MULTILIB' line in /etc/pkgmk.conf, then rebuilt binutils, glibc and gcc using ports in /usr/ports/{binutils,glibc,gcc}. Run 'pkgmk -f -u' in port directory to rebuild and reinstall.
If you want to rebuild follow LFS way without package manager, just rebuild those 3 packages like in LFS book then remove /usr/lib32 directory.
I dd'd the image to a pen drive but I can't boot it. I just get a blank screen with an immobile mouse cursor on it. Is it meant to be a hybrid or is it a pure iso image that needs to be on a disc?
Yes its hybrid iso. It works for me. dd'd to my pendrive and it boots fine. I'm using 'dd if=lfs-....iso of=/dev/sdb bs=4M status=progress && sync'.
Does it go to livecd's grub? if yes, choose 'debug' option to see any error msg.
Yes its hybrid iso. It works for me. dd'd to my pendrive and it boots fine. I'm using 'dd if=lfs-....iso of=/dev/sdb bs=4M status=progress && sync'.
Does it go to livecd's grub? if yes, choose 'debug' option to see any error msg.
I don't know what it goes to but I don't think it's GRUB. I've never seen GRUB put up a graphical screen with a cursor. Actually what it looks most like is refind. But I was booting from the F12 menu and chose USB, so it shouldn't be picking up refind from my hard drive at all. Mind you, I do have a very eccentric UEFI chip. I've already noticed that it has its own ideas about what to boot that don't always correspond to my instructions.
I need to carry out a few more tests. I'll check the md5sum of the image and try booting it from a disc instead of a drive. Also I'll see if I can boot it from elilo.
Well I finally got it to boot from the pen drive and yes, it used grub. I still have no idea what was going wrong before. A uefi problem, I guess.
I notice that there isn't a version test script and it doesn't seem to include a copy of the Book either. I tested the network: it's set up for the old nomenclature (eth0) and udev gave me the new one, but once I'd edited and renamed the file in /etc/sysconfig, it started up OK. All the same, some less experienced users might be thrown by that.
Then I tried using links to get to this site. That worked up to a point and I was able to log in but then it suddenly went on strike. That could be purely a links thing; I use links a lot in its graphical mode and I've noticed that sometimes it can't find pages but then it does if you interrupt and try again. In this case it didn't.
I didn't install it to the hard drive. I may do that later when I have more energy.
OK, so I did the install about half an hour ago. No more boot problems. I don't know what was causing those before but it was definitely a uefi problem, nothing to do with the image.
Installation went smoothly, except for grub, which I left out. I don't want grub on my system. I'll add the new system to refind later so that I can boot it.
The instructions seem fine, though of course they assume a certain amount of knowledge. I've seen quite a few posters here and on the LFS mailling list who would have needed more guidance.
One thing that might need attention is some error messages I got while building the initramfs, concerning missing firmware:
Code:
WARNING Missing firmware for wd919x:wd719x-risc.bin
WARNING Missing firmware for wd919x:wd719x-wcs.bin
WARNING Missing firmware for aic94xx:aic-94xx-seq.fx
All wifi, I think, so of no concern to me, but there might be problems on some laptops.
It boots. I set up the network with dhcp using the same renaming trick as on the usb, and I'm using links to write this. For some reason it took a little while for name resolution to get going.
I notice you have a Crux-type updating system with the "core" repo set to the LFS packages. Presumably additional packages could be downloaded via the BLFS book. What about the Pkgfile scripts? Would they have to be written by the user, based on the book?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.