Quote:
Originally Posted by drimer
yes i know
but how to do it ??
any notification
|
Actually, it should be quite easy, but it depends on how flexible you want the installer to be.
For maximum flexibility at install time you would need a package manager in your distro, so that you can choose which packages to install. In that case it would basically look like this:
- Start from a live medium (CD/DVD/USB/PXE) and start the installer.
- Let the user partition the disk (you can instruct the user to use existing tools like fdisk or GParted, or you can write your own partitioner, possibly using libraries like libparted)
- Mount the partitions in the way the user specified and use your package manager to install the packages the user has chosen to them
- Create necessary configuration files, like fstab, timezone, hostname, ..., likely with user intervention
- Install a bootloader
- Optional, let the user do post-install configuration, like creating additional users.
It will get easier to write an installer if you go for less flexibility, for example if you just deploy filesystem images of your distro and configure them afterwards.
So the first thing to think about would be: How flexible do I need the installer to be?