I am trying to install a Linux OS(Debian) on my embedded device. My requirement is that, after a successful installation of OS, a set of file operations should be performed on the media from which the OS is getting installed. I need some clarification on who executes the process of OS installation, so I can understand which component I can modify to include the above mentioned installation action.
I think it is not the bootloader but an installation script such as Anaconda OS installer that carries out the task of OS installation. Bootloader only comes into picture while booting an already installed OS image. Can you please confirm?
If my understanding is correct, then I have to add a post installation action in Anaconda installation script to perform the file operations that I mentioned above. If it is really the boot loader that performs the OS installation , then I will have to figure out how to modify the bootloader script