Writing an OS Installer
Posted: Fri Aug 22, 2014 5:27 am
My question relates to operating systems though nothing to do with actually writing and compiling source code for one.
I already have an operating system compiled and packaged to a bootable image which I can 'dd' to a USB stick. I can then boot an x86 machine from this USB stick however this does not install anything on the machine's hard drive i.e. I have to boot from the USB stick each time. What I want to achieve is something like an OS installer such as you would find in any Linux distribution, however I am uncertain of the steps needed to be undertaken by the installer.
A simple way would perhaps be to 'dd' the image directly to the hard disk but I would like to try and avoid this method if possible as it requires a skilled operator to do this. Another way would be to image the hard disk (once I had 'dd'-d the binary image to a hard disk first) and used a commercial image installer to clone the disk. again I would like to avoid this as cloning might be time consuming plus I think it's hardware dependent.
Could anyone give me some pointers on how I can create an OS installer or perhaps the steps an installer would have to go through. Could anyone give me any indication how Linux distros achieve their installation? I'm just after a starting point really and any help would be appreciated.
I already have an operating system compiled and packaged to a bootable image which I can 'dd' to a USB stick. I can then boot an x86 machine from this USB stick however this does not install anything on the machine's hard drive i.e. I have to boot from the USB stick each time. What I want to achieve is something like an OS installer such as you would find in any Linux distribution, however I am uncertain of the steps needed to be undertaken by the installer.
A simple way would perhaps be to 'dd' the image directly to the hard disk but I would like to try and avoid this method if possible as it requires a skilled operator to do this. Another way would be to image the hard disk (once I had 'dd'-d the binary image to a hard disk first) and used a commercial image installer to clone the disk. again I would like to avoid this as cloning might be time consuming plus I think it's hardware dependent.
Could anyone give me some pointers on how I can create an OS installer or perhaps the steps an installer would have to go through. Could anyone give me any indication how Linux distros achieve their installation? I'm just after a starting point really and any help would be appreciated.