[SOLVED] [Help] Creates an installer for a distro based on LFS
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.
[Help] Creates an installer for a distro based on LFS
Hello everyone,
I just finished my own distribution based on the LFS and BLFS book.
and I want to make it installable and why not have a live session.
I look through everything, but I find that each installer of a distro (like ubuntu or debian) works just with the latest distro based on this and it's going to not work for me if I'm not quench.
i hope if you can help me to resolve the problem. or even give me some helped to start.
If you don't use package management what an installer has to do comes down to this:
- Choose a partition to which to install
- Format it
- Untar the tarred files of your BLFS installation to that partition
- Create a valid fstab file
- Create a valid bootloader configuration and install a bootloader
If you successfully walked through LFS and BLFS you should be have already the knowledge to write a script to do that. Will of course not be a fancy installer with GUI, but I think anyone that wants to use a LFS/BLFS system doesn't need that.
I just wanted to add that this question about how to create an installer gets asked fairly often. To see what I mean, go back to the Linux From Scratch forum index page, click on "Search this forum", and do a search for simply "installer" (choose posts instead of threads for quicker access to relevant comments). You will find a bunch of posts and comments about this matter. Many posts will have some suggestions and links related to adapting distro installers. But I have never seen one of those threads here end with someone reporting success and sharing how to do it.
Quote:
Originally Posted by mister_karim
...I want to make it installable and why not have a live session.
It's easy to overlook that all distro installers ARE live systems. Booting with a distro installation DVD or CD usually begins with a linux kernel booting. Many of them hide the message and init spew behind fancy graphics to mesmerize us for a minute, but it's there that whole time. So IMO, developing a live system would be the beginning, not an afterthought.
It depends how you define live system. If doubt that running Busybox with an installer really counts as live system (like Debian does), whereas other distros, like Ubuntu or Fedora, run fully fledged live systems.
For a simple installer for a LFS system like I described above running Busybox with a custom script should be enough. If you have created something like that you also should have the basic knowledge how to create live-systems, all you need to know in addition is how to use one of the union filesystems, like AUFS or OverlayFS.
If you want to create your own distro, and make an installer, I think it's a bit too late for this build... You should have made packages, to be used with a package manager. You can of course make a backup (with tar or rsync), and restore that to other machines.
I had much help from the scripts at https://github.com/baho-utot. I use pacman. I think pacman is easiest to create packages for. It's not that difficult to create packages for lfs. Just install the package manager in the toolchain, and then create packages for all packages.
The tricky bit is to make the installation process reasonable. Remove all file conflicts (the same files exist in different packages) and repackage. Some packages needs scripts to be run after they are installed. And then to think of sane defaults. I create example config files, to make it easy to change, instead of creating the files after install. (My distro is definately not newbie friendly...)
I just tried to install my system from Arch's installation-iso, just changing the repo in pacman.conf to where I have my repo. Still some issues, but at least it's possible, and just fix those things after.
I get much help from abs (arch build system), looking both at their PKGBUILD's and the post-install scripts.
If you want to create your own distro, and make an installer, I think it's a bit too late for this build... You should have made packages, to be used with a package manager. You can of course make a backup (with tar or rsync), and restore that to other machines.
I had much help from the scripts at https://github.com/baho-utot. I use pacman. I think pacman is easiest to create packages for. It's not that difficult to create packages for lfs. Just install the package manager in the toolchain, and then create packages for all packages.
The tricky bit is to make the installation process reasonable. Remove all file conflicts (the same files exist in different packages) and repackage. Some packages needs scripts to be run after they are installed. And then to think of sane defaults. I create example config files, to make it easy to change, instead of creating the files after install. (My distro is definately not newbie friendly...)
I just tried to install my system from Arch's installation-iso, just changing the repo in pacman.conf to where I have my repo. Still some issues, but at least it's possible, and just fix those things after.
I get much help from abs (arch build system), looking both at their PKGBUILD's and the post-install scripts.
thanks for you're help. I can create a script to do coping system files and creating new users,with command lines, but I need a live session first to do this. so can you give me Somme notes about how to create a live session. and thanks again
Follow the instructions here: http://www.slitaz.org/en/doc/scratchbook/
You only need to do the steps Organize a working directory and Construction of the base SliTaz system, then add your install script to the base system.
Hello , Thanks guys I Succeeded to create an installer & a live session for my distro using slitaz scratchbook and I create a script to do installation steps Now it work fin.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.