I'm working at a University and we are restoring our Macs using Apples ars which works great. The process is to manually go to the computer - reboot it in recovery mode and then run the ars command to sync the image from the server.
Is it possible to do this via shell script? I imagine the steps to be roughly:
- Set a OSX flag that reboots into the recovery mode.
- Execute a shell script that runs the asr (Maybe via LaunchDaemon?)
- Reset the flag to boot from the normal boot volume
Unfortunately I did not find information how to manually reboot into recovery mode or launch an automatic script from the recovery partition.
Do you have any idea how this could work?
Thanks for your help!