LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 11-11-2019, 09:27 AM   #1
emmett1
Member
 
Registered: Nov 2017
Location: Malaysia
Distribution: Venom Linux, LFS
Posts: 49

Rep: Reputation: Disabled
LFS LiveCD ISO, multilib, UEFI support, installable, sysvinit, boot from ram


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 .

Get the iso here: https://sourceforge.net/projects/linuxfromscratchlivecd
Project github page: https://github.com/emmett1/lfs-scripts

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

If theres anything, just tell me
 
Old 11-11-2019, 10:31 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
That's wonderful. If there's anything I can do to help, please let me know.
 
Old 11-11-2019, 09:34 PM   #3
emmett1
Member
 
Registered: Nov 2017
Location: Malaysia
Distribution: Venom Linux, LFS
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
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
 
Old 11-12-2019, 04:10 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
You want me to build the whole system, see if I get into any trouble, right?
 
Old 11-12-2019, 04:37 AM   #5
emmett1
Member
 
Registered: Nov 2017
Location: Malaysia
Distribution: Venom Linux, LFS
Posts: 49

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-12-2019, 04:45 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
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.
 
Old 11-12-2019, 04:54 AM   #7
emmett1
Member
 
Registered: Nov 2017
Location: Malaysia
Distribution: Venom Linux, LFS
Posts: 49

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-12-2019, 05:55 AM   #8
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
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.
 
Old 11-12-2019, 03:22 PM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
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?
 
Old 11-14-2019, 03:31 AM   #10
emmett1
Member
 
Registered: Nov 2017
Location: Malaysia
Distribution: Venom Linux, LFS
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hendrickxm View Post
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.
 
Old 11-14-2019, 03:36 AM   #11
emmett1
Member
 
Registered: Nov 2017
Location: Malaysia
Distribution: Venom Linux, LFS
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
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.
 
Old 11-14-2019, 05:01 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by emmett1 View Post
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.
 
Old 11-14-2019, 11:06 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
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.
 
Old 11-15-2019, 01:10 PM   #14
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
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.

Otherwise fine.
 
Old 11-17-2019, 09:32 AM   #15
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
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?

Last edited by hazel; 11-17-2019 at 09:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trying to boot Ubuntu in UEFI mode, UEFI doesn't recognize boot devices Sarcutus Ubuntu 11 01-11-2019 07:14 PM
[SOLVED] systemd startup and init, rc.d interactions vs sysvinit (migrated from sysvinit to system) spenced Linux From Scratch 3 07-20-2018 01:47 PM
Mobo only supports uefi boot - how do I boot off a non-uefi cd? Ulysses_ Linux - Hardware 3 02-25-2016 08:06 PM
[ANN] mk-slack64-multilib : A tool to create slackware64+multilib tree/iso phenixia2003 Slackware 5 12-28-2012 05:42 AM
Creating a installable LiveCD with Red Hat wwwwolf Red Hat 7 05-29-2007 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration