I am building deployment system on debian v9.40 (PXE). I will build a script which will read basics parameters, save them and initialize flashing procedure. Unfortunatelly during this process I need reboot server few times. I would like to make another script which should run after boot, read current status/step from file and if it isnt done will run next step till it is done.
I found how to run script during boot but I need to run it automatic after boot that I can see whole process, output and errors if they appears.
Just like I would start it every time after each boot from keyboard.
Thank you for your help!