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.
Hi, since I'm finishing my first LFS system, I was wondering if there's a way to create some sort of installer or LiveCD so I can share my system. I'll appreciate your help.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
There are a number of similar posts like this on this forum have look, but frankly I think you're flogging a dead horse, if you want to do it for your own use or because it might be fun then go to it, but you won't get a lot of interest from people wanting yet another pre built OS, sort of spoils the whole idea of building a system for yourself from scratch.
Thank you for your answer veerain, I'll check it out, it seems interesting and I'm reading about it right now, I've came across with some useful information too, but I don't know if they work until I test them.
As far as the live cd goes I'm not really sure what to do, but as for an "installer" you should just be able to copy the system directly from one drive to another. I am doing this during my current build so I can work on a faster computer at home, but still work on it when time allows at school on my laptop.
Try this from either the host system (if being built that way) or a live cd if you are building LFS on the fly:
Code:
mount /dev/sda1 /mnt/lfs (where sda1 is your LFS system)
cd /mnt/lfs
tar -czpvf /home/user/backup.tar.gz . (Where you want the backup to be. The " . " is important.)
This will place the backup of the LFS system in /home/user, adjust to suit your needs. Then you can deploy the OS on another system by using a live cd and unpacking. After setting up a partition for LFS, do the following:
Code:
mount /dev/sda1 (again, the target partition of your LFS)
cd /mnt/lfs
tar -xzpvf /pathtobackup/backup.tar.gz
Just set up a flash drive with 2 partitions, one for the live cd of choice and the second to store your backup.tar.gz
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
This method will only work when both systems have much the same hardware, cpu size (32/64b), video cards, unless you have built in support for different cards, etc etc
Ragnarok I will try that method it seems perfect for what I try to do, that way I can work on my own machine and my collegue's machines. For the time being I will mark this thread as Solved, I will try that method and if anything goes wrong I will tell you. Thank you both!
Keith is right, I completely forgot to mention it though. I'm just getting through the install of X, so video drivers aren't a problem for me yet, and I have a few kernels compiled for different hardware. If you built LFS for 64 bit I believe it will not work on a 32 bit system unless you have compiled multilib support, but if you built for 32 bit it should run on most machines. I am building on a mid-2007 64bit dual core mac mini and a 1999 vintage IBM Thinkpad pentium 2 (thus multiple kernel options).
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
You can't run a 64 kernel or any other 64 bit piece of software on a 32 bit machine even if you have multilib, you can do it the other way around though, I beleive there is or was switch in the kernel config to allow support for 32 bit apps with a 64 bit kernel, as long as you have the relevent sub structure installed.
I'm building a 32bit system, since most of the machines I'm working with support this architecture, so I guess this shouldn't be a problem. And indeed, it's possible to built a 64bit system with 32bit capabilities, but not the other way around.. Thanks, again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.