Quote:
How does it work install the system to disk?
Well, it depends on these three questions:
1. Do you want to have on computer only your OS, or you want to do multiboot
2. Is your bootloader GRUB or your own bootloader is loading simple some sectors from disk where is your kernel or your bootloader is loading your kernel from some filesystem
3. Are you installing your OS to legacy or UEFI
Good installer is complex thing. But, for testing you probably do not need anything difficult like it can seem. I personally have my 15 years old computer for testing and I have these answers:
1. I want to have only my OS
2. My bootloader simply read sectors from 1 to end of kernel
3. Legacy boot
So my installer currently works very simply:
1. Write bootloader to sector 0
2. Write kernel from sector 1
3. Everything is done.