mardi 9 décembre 2014

Shell script to boot OSX in recovery mode and execute another shellscript


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:



  1. Set a OSX flag that reboots into the recovery mode.

  2. Execute a shell script that runs the asr (Maybe via LaunchDaemon?)

  3. Reset the flag to boot from the normal boot volume

  4. Reboot


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!





Aucun commentaire:

Enregistrer un commentaire