LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-15-2013, 11:21 AM   #1
mister_karim
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
Unhappy [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.

thank you in advance.
 
Old 06-16-2013, 06:27 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
2 members found this post helpful.
Old 06-16-2013, 07:32 AM   #3
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
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.
 
1 members found this post helpful.
Old 06-16-2013, 08:49 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
1 members found this post helpful.
Old 06-16-2013, 09:25 AM   #5
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
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.
 
2 members found this post helpful.
Old 06-16-2013, 09:25 AM   #6
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
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.
 
2 members found this post helpful.
Old 06-17-2013, 03:23 PM   #7
mister_karim
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-18-2013, 07:55 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
1 members found this post helpful.
Old 06-27-2013, 09:45 AM   #9
mister_karim
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
  


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
AMD based OUI installer can run on Intel based machines? cdhar Linux - Newbie 1 09-14-2012 02:57 PM
Sorce based distro (gentoo) Vs Binary based distro(fedora, debian,..) ashwin_cse Linux - Distributions 7 02-08-2010 01:46 PM
I want to use the cinch installer for a new distro based on debian testing. mdmarmer cAos 0 08-08-2009 11:56 AM
LFS based distro Crazed123 Linux From Scratch 13 11-19-2003 03:48 PM
Custom Distro installer for LFS Stephanie General 24 04-09-2002 12:00 PM

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

All times are GMT -5. The time now is 06:31 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